Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Defining ROOT_URL with a subfolder #17

Open
marceloschmidt opened this issue Jan 27, 2016 · 1 comment
Open

Defining ROOT_URL with a subfolder #17

marceloschmidt opened this issue Jan 27, 2016 · 1 comment
Labels

Comments

@marceloschmidt
Copy link
Contributor

marceloschmidt commented Jan 27, 2016

We defined ROOT_URL as a subfolder (eg. http://localhost:3000/docs).
If we didn't touch the code, it would just not work at all. Server would render correctly, but then client would re-render a blank page. Any thoughts on how to fix that?
We went ahead and made a few changes to the code, so now it works on a subfolder, but it has it's drawbacks. First, we had to include a meta tag, and now all links have to be relative instead of absolute. Second, although clicking a menu link will open the right URL, if you inspect the link, you'll notice that it points to what would be an invalid location, i.e., without the /docs, and so search engine crawlers wouldn't be able to crawl our page. Do you have a walkthrough on how to run this on a subfolder? TIA

@aaronjudd aaronjudd self-assigned this Feb 3, 2016
@aaronjudd
Copy link

The alias of the main repo could be changed I think, or we could just add a global for a prefix to the routes.

@aaronjudd aaronjudd removed their assignment Feb 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants