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

Scheme Relative BaseURL should remove tld #1206

Closed
Secretmapper opened this issue Jun 13, 2015 · 3 comments
Closed

Scheme Relative BaseURL should remove tld #1206

Secretmapper opened this issue Jun 13, 2015 · 3 comments

Comments

@Secretmapper
Copy link
Contributor

Scheme relative BaseURL can be used by setting BaseURL in the config file as:

baseurl = //mysite.tld/relative

While using '//mysite.tld/relative' works for production, it does not work for development as localhost is still added. Hence hugo says:

Web Server is available at
http://127.0.0.1:1313//mysite.tld/relative/

and accessing that link results in a 404.

Adding https:// fixes the problem, but then it has to be edited out again for production. Ideally hugo should remove mysite.tld as it is the domain name itself, and the web server be available at:

Web Server is available at
http://127.0.0.1:1313/relative/

@Secretmapper Secretmapper changed the title Scheme Relative BaseURL should remove told Scheme Relative BaseURL should remove tld Jun 15, 2015
@bep bep added the Stale label Feb 27, 2017
@bep
Copy link
Member

bep commented Mar 1, 2017

Note/Update: This issue is marked as stale, and I may have said something earlier about "opening a thread on the discussion forum". Please don't.

If this is a bug and you can still reproduce this error on the latest release or the master branch, please reply with all of the information you have about it in order to keep the issue open.

If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.

@ssylvan
Copy link

ssylvan commented Mar 8, 2017

I could reproduce this on v0.16, but just downloaded v0.19 and it seems fixed. Unfortunately 0.19 also seems to have broken all my redirects so I can't switch to that yet, need to track what that is.

@bep bep closed this as completed Mar 8, 2017
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants