Closed eatyourgreens closed 4 years ago
Redirect old hash fragments for subjects, collections, users and tags to the new page URLs.
On window load, look for a fragment ID in the URL and redirect:
#/subjects/ASC0001fet
/subjects/ASC0001fet/
#/collections/CSCL00000p
/collections/CSCL00000p/
#/users/PinkPimpernel
/users/pinkpimpernel/
#/search?tags[map]=true
/tags/map/
Ok, I've updated so that it should only redirect for fragments that start with #/ and the location is replaced in the window history.
#/
Redirect old hash fragments for subjects, collections, users and tags to the new page URLs.
On window load, look for a fragment ID in the URL and redirect:
#/subjects/ASC0001fet
redirects to/subjects/ASC0001fet/
.#/collections/CSCL00000p
redirects to/collections/CSCL00000p/
.#/users/PinkPimpernel
redirects to/users/pinkpimpernel/
.#/search?tags[map]=true
redirects to/tags/map/
.