Colocating docusaurus with app and internal urls #7973
-
|
Similar to a previous discussion, I have an app with the following routes: Moving blog, docs, and other content heavy pages (like changelog) to docusaurus are clear wins. However, the actual deployment has gone awry as the "back to app" navbar item (href of As alluded to in previous discussions, the cause of the problem is that docusaurus thinks it owns these URLs and wants to handle routing instead of doing a full-page navigation. Is there a way (or does it make sense as a feature) to communicate to docusaurus the following URL paths are outside of its domain? Or is the only solution to prepend the url to all hrefs and write markdown like: Go to your <a href={`${useDocusaurusContext().siteConfig.url}/account`}>account page</a>Or is the recommendation to split docusaurus into two. Have a blog only instance with a base url of Or is there a baseUrl that makes sense to have everything hosted under? The best one I've come up with is |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
You can use the https://docusaurus.io/docs/advanced/routing#escaping-from-spa-redirects Where did you look for this info in our doc? Maybe we could document this as well in that place? You are not alone looking for this info so our current doc may be not good enough for discoverability |
Beta Was this translation helpful? Give feedback.
You can use the
pathname://protocol to link to things that are outside the SPA and yet are non fully qualified URLs.https://docusaurus.io/docs/advanced/routing#escaping-from-spa-redirects
Where did you look for this info in our doc? Maybe we could document this as well in that place? You are not alone looking for this info so our current doc may be not good enough for discoverability