stats4sd / Stats4SD-Resources-Site

Reposistory for the Stats4SD Resources Repository
https://resources.stats4sd.org
GNU General Public License v3.0
0 stars 0 forks source link

Improve back button functionality for case when no available history #125

Closed chrismclarke closed 7 years ago

chrismclarke commented 7 years ago

Currently navigating to a direct resource url will still bring up a back button which simply sends to window.history.back(), i.e. if you followed a link from another website it sends you back to the site, not further back within a navigation stack on the resources site. Therefore would be good to either track current navigation stack and send back appropriately, or hard-code back buttons via path (complicated as typcially /resource/xyz comes from resource clicked in /list/abc)

chrismclarke commented 7 years ago

Implemented more simple nav back if last page exists, otherwise go home. Seems to work reasonably well so closing