My client uses Full Screen (F11) with Chrome and wanted me to add a back button so I added one with
onclick="history.go(-1);"
into an include page (so it’s common to all pages).
The issue I have is that there is a page with a very large list, clicking on a ‘business’ takes you to an SPA page via a Route, and when you then press the aforementioned Back button it returns you to the previous list BUT back to the top of the list rather than to the item that was clicked on. Very frustrating when he’s trying to go through the list one-by-one.
Any thoughts on how best to implement a “Back to where I was in the list” type thing?
Ah fine, i see. Maybe just don’t use history.go(-1); on the details page.
Try another thing - from the list page, on click set a session value with the id (instead of url) and then on the details page use a button which goes to the route 'domain.co.uk/admin/contacts/#' + your_session_value so that it redirects back to: domain.co.uk/admin/contacts/#list-item-123
Hi Teodor, I have tried your suggestion, and variations of it, to no avail.
I can get anchors to work when the button or link are on the same page as the anchor (destination) but not when going from one page to another.
My thoughts are that when you click on a link from one page to another, when it gets to that target page it has to run whatever Server Connect Components there are, and then by that time it's forgotten about the anchor request - I have no evidence of this
Current set-up : SPA Pages, Windows 10, MySQL, PHP
Wappler Version : 3.73
Operating System : Windows 10 Pro
phpMyAdmin