Skip to content
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

linkPrefix weirdness #680

Closed
benstr opened this issue Feb 17, 2017 · 3 comments
Closed

linkPrefix weirdness #680

benstr opened this issue Feb 17, 2017 · 3 comments

Comments

@benstr
Copy link

benstr commented Feb 17, 2017

Deployed to gh-pages no problem. Project name was hackiot so I set the config linkPrefix = "/hackiot". No problems.

Then added a custom CNAME and changed config to linkPrefix = "/". Now my routes do not include the TLD leaving all links broken (ex: http://about).

Went back and changed config to include the TLD linkPrefix = "beta.hackiot.org/". That changed the routes to now include the TLD plus more (ex: http://beta.hackiot.org/beta.hackiot.org/about).

What am I missing here?

@KyleAMathews
Copy link
Contributor

What happens if you remove linkPrefix altogether from the config?

@benstr
Copy link
Author

benstr commented Feb 17, 2017

Removing from config throws an error when building. But it got me thinking... removed --prefix-links flag from the deploy script and all is well now.

Thanks for your input.

@benstr benstr closed this as completed Feb 17, 2017
@chenvan
Copy link

chenvan commented Apr 4, 2017

I have the same problem.
follow @benstr 's solution.
It works. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants