Skip to content

Commit

Permalink
Explain issue with #2934 in docs
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Dec 17, 2017
1 parent f2b0b76 commit dbe55d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/manual.txt
Expand Up @@ -212,7 +212,11 @@ Creating a Blog Post
etc. Sure, you can just figure out the URLs for each thing and use that. Or you can use
Nikola's special link URLs. Those are done using the syntax ``link://kind/name`` and
a full list of the included ones is `here <link://slug/path-handlers>`__ (BTW, I linked
to that using ``link://slug/path-handlers``)
to that using ``link://slug/path-handlers``).

Note that magic links with spaces won’t work with some input formats (eg.
reST), so you should use slugs there (eg. ``link://tag/some-tag`` instead of
``link://tag/Some Tag``)


To create a new post, the easiest way is to run ``nikola new_post``. You will
Expand Down
1 change: 1 addition & 0 deletions nikola/nikola.py
Expand Up @@ -1426,6 +1426,7 @@ def url_replacer(self, src, dst, lang=None, url_type=None):
else:
link_kwargs = {}

# unquote from issue #2934
dst = self.link(dst_url.netloc, unquote(dst_url.path.lstrip('/')), lang, **link_kwargs)
# Assuming the site is served over one of these, and
# since those are the only URLs we want to rewrite...
Expand Down

0 comments on commit dbe55d2

Please sign in to comment.