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

URL_TYPE option fails for sites deployed outside root folder #1046

Closed
ralsina opened this issue Feb 11, 2014 · 1 comment · Fixed by #1065
Closed

URL_TYPE option fails for sites deployed outside root folder #1046

ralsina opened this issue Feb 11, 2014 · 1 comment · Fixed by #1065
Assignees
Milestone

Comments

@ralsina
Copy link
Member

ralsina commented Feb 11, 2014

SITE_URL = 'http://getnikola.com/subsite/'

with URL_TYPE = 'full_path' (snippets of index.html):

    <link rel="canonical" href="http://getnikola.com/index.html">
        <a class="navbar-brand" href="http://getnikola.com/">Demo Site</a>
                <li><a href="/archive.html">Archives</a>
                </li><li><a href="/categories/index.html">Tags</a>
                </li><li><a href="/rss.xml">RSS</a>

with URL_TYPE = 'absolute':

    <link rel="canonical" href="http://getnikola.com/index.html">
        <a class="navbar-brand" href="http://getnikola.com/">Demo Site</a>
                <li><a href="http://getnikola.com/archive.html">Archives</a>
                </li><li><a href="http://getnikola.com/categories/index.html">Tags</a>
                </li><li><a href="http://getnikola.com/rss.xml">RSS</a>

No links are correct.

@ralsina
Copy link
Member Author

ralsina commented Feb 11, 2014

Also, nikola check -l needs to take URL_TYPE into consideration.

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

Successfully merging a pull request may close this issue.

1 participant