Open christophercr opened 5 years ago
I think I found an issue related to this. When you go to the subpath of a version that does not exist the app gets stuck in a loop. (eg: https://stark.nbb.be/showcase/asdf/)
Thanks @cnomes, we'll track that one in #1058 😉
I'm submitting a...
Current behavior
Currently we have a 404.html page in the
gh-pages
branch in order to avoid the 404 default page from GitHubPages, This custom 404 page redirects to the root URL of the app (i.e./showcase/latest
,/showcase/10.0.0-beta.0
, etc) following the solution described in http://www.backalleycoder.com/2016/05/13/sghpa-the-single-page-app-hack-for-github-pages/. However, the final solution has a "slight" difference: we do the redirection through the JavaScriptlocation
instead of the<meta http-equiv="refresh" content="0;URL='URL_HERE'"></meta>
.This difference has an inconvenient since it is not good for crawler indexing (SEO).
Expected behavior
We should be able to use the
<meta http-equiv="refresh">
solution providing a dynamic URL that will be calculated in every version of the showcase (i.e./showcase/latest
,/showcase/10.0.0-beta.0
, etc) so that it is optimized for crawler indexing (search engines).What is the motivation / use case for changing the behavior?
To have a Showcase app optimized for SEO.
Environment