-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
(Docs): Routes for internal relative links are root-relative and therefore broken for in-app docs #5917
Comments
A potential solution could be adding a custom permalink rendering function in the markdown.anchor config of the docs' VuePress instance. That function could reference a new environment variable Then the in-app environment would have: And docs.directus.io could fall back to the default of prefixing nothing. |
Currently, the docs module should handle clicks and use directus/app/src/modules/docs/components/markdown.vue Lines 112 to 130 in de39b92
Not sure why that doesn't seem to work on your end 🤔 |
|
Thank you for taking the time to submit this! Unfortunately, our team was not been able to reproduce it based on the information provided. Therefore, we will close this ticket for now, but will happily re-open it if new details are provided that allow us to reliably replicate the problem. As a reminder:
This is an automated response. |
1) The issue and what you expected to happen
Clicking on links of internal references while using the in-app documentation gives the user a route error instead of taking them to the intended page.
2) Exact steps to reproduce this issue
Clicking a relative link in the in-app documentation as an admin user:
Results in this error:
https://<example-domain>/concepts/items/
For the in-app documentation, the above route should resolve to:
https://<example-domain>/admin/docs/concepts/items/
3) Your environment:
The text was updated successfully, but these errors were encountered: