Closed simoneduca closed 6 years ago
It does.
Can /classify
redirect to /transcribe
as per #372 or doesn’t Angular allow that?
Also, this changes the link to #!/classify
but the link from the Talk page goes to #/classify
(no exclamation mark.)
Regarding redirecting I'm not sure, I'll check. The link from the Talk doesn't work because of the missing !
. #/classify
is hardcoded in PFE, so I assume it would break all other projects if we added a !
.
I've found the correct way of getting rid of the hash-bang #!
. Here's some info about when it was introduced
I've tested two ways we could handle this:
$locationProvider.hashPrefix('');
gets rid of just !
$locationProvider.html5Mode(true);
gets rid of #!
2 is my favourite as it's easier to share and read. However, PFE links have #
hardcoded in, so I'm worried that could break SW nav when redirected there from PFE.
Any thoughts @eatyourgreens?
For option 2, you’ll also need to configure the server to resolve URLs like https://www.shakespearesworld.org/classify back to https://www.shakespearesworld.org/index.html You can ask on Slack if you need help with that.
I went with option 1 https://preview.zooniverse.org/shakespearesworld/#/. Regarding the redirect, I'm not sure how to do it/if it's possible. What would the benefit be? Bookmarked links?
Nice and useful article, thanks.
Should I merge this? It looks good to me.
Sorry @eatyourgreens, yes please!
Fix #372
I'm not sure if theroutes need to be updated server-side as well, but this takes care of the frontend.