-
-
Notifications
You must be signed in to change notification settings - Fork 462
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
Edit page link fallback not working #981
Comments
Ah, good point! I wonder what the correct behaviour is.
|
This is something I did in a project by overriding the I personally like that behavior a lot. |
Yes, I think I agree that would also be the ideal behaviour although it would require some more config for a create-page base URL, and a new string in our translation dictionaries. Given the increasing config complexity, it may also be nice to provide some presets for common hosts to avoid everyone having to figure out the base URLs when it can be done based on repo + branch etc. |
I personally only thought about behaviour 1 (Link to edit the default locale file being used for fallback content)... Maybe there could even be multiple buttons on the bottom: "Edit this page", "Create page in your language"... |
Maybe it would be smart to split this into two steps:
|
What version of
starlight
are you using?0.11.0
What version of
astro
are you using?3.0.6
What package manager are you using?
pnpm
What operating system are you using?
Windows
What browser are you using?
Brave
Describe the Bug
When clicking "Edit page" at the bottom of the page (when enabled) but the page is not available in the current language (the fallback page is currently shown instead), then the link does not use a link to GitHub to the fallback page but to a page that does not exists, therefore leading to this page:
I at least encountered this problem, when English is not the default local...
Link to Minimal Reproducible Example
https://starlight.astro.build/de/guides/overriding-components/
Participation
The text was updated successfully, but these errors were encountered: