wgnhs / lslc-web-app

Web Application for the viewing the WGNHS Lake Superior Legacy Collection
https://wgnhs.github.io/lslc-web-app/
1 stars 0 forks source link

fragment URL interference #168

Closed cmrRose closed 6 years ago

cmrRose commented 6 years ago

Other websites may append to the URL like this: http://data.wgnhs.uwex.edu/lake-superior-legacy/thin-sections.html#color?platform=hootsuite

This will mess up my functions that use window.location.hash to determine what to display... for instance, '#color' for the thin section gallery and sample number for the hand samples page.

cmrRose commented 6 years ago

related to the original Issue #5 of understanding fragment URLs, etc.

cmrRose commented 6 years ago

I have fixed it by adding code to extract the text between the hash # and the first question-mark. I should still investigate how to use better use semantic URLs.