3 ms·
You can solve the back-button issue with a little better UX design. Don't change the url when people are clicking on the urls, but have a share icon for each e
by whizzkid 10y ago
You can solve the back-button issue with a little better UX design.
Don't change the url when people are clicking on the urls, but have a share icon for each element that is placed in the modal that pops up when clicking on it.
In this way, url stays the same while people are checking the elements, and you can still have specific urls for each element for people to point to a specific demo if they want.
Share icon copies the url e.g "http://hackerthemes.com/bootstrap-cheatsheet#dropdown-header" http://hackerthemes.com/bootstrap-cheatsheet#dropdown-header... to clipboard and visiting this url pops up the dropdown-header demo.
- johns 10y agousing replaceState instead of pushState will keep the address bar updated without interfering with the back button
- bbcbasic 10y agoI did a day course on UX, so call me an expert or not, but the general gist of UX is to listen to users. Since most users seem happier with updating the address but not adding to the back history, I would guess this is the best UX for the target audience of software developers.