-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Homepage is broken with JavaScript disabled #4
Comments
If there's a way to address this while still automatically switching to the correct local language, please let us know! |
Oh - I guess we could default to English and introduce some sort of a language switching menu thing. 🤔 |
I'm unfortunately not familiar with the framework you're using. This suggests it should be possible though. |
I suppose you could, but respecting the |
Ah - Maybe we could just introduce a |
Perhaps
(And perhaps another Once other languages are supported, it'd simply be a matter of replacing the hardcoded URL with something derived from |
No that results in an error:
This is the closest I've been able to get to something reasonable: ---
import MainLayout from '../layouts/MainLayout.astro'
---
<MainLayout>
<script is:inline>
// Redirect your homepage to the first page of documentation.
// If you have a landing page, remove this script and add it here!
// window.location.pathname = '/en/introduction';
window.location.replace('/en/introduction')
</script>
<noscript>
JavaScript disabled.
Please <a href="/en/introduction">click here</a> to manually redirect to English introduction.
</noscript>
</MainLayout> However, the "click here" link isn't visible for some reason because of the |
Since the homepage uses JavaScript to jump to the introduction page, it just stays blank when scripting is disabled.
Possible solutions:
<noscript>
tag with a meta refresh could be used, but this would reintroduce Fix broken back button on Firefox #3 for script-disabled users, I believe.The text was updated successfully, but these errors were encountered: