Skip to content
Permalink
Browse files
Merge pull request #2164 from getnikola/fix-2132
Fix #2132
  • Loading branch information
Kwpolska committed Nov 1, 2015
2 parents feb9813 + 96b8e0b commit 441090c6ddad68fae902775463e802e2d3570215
Showing with 3 additions and 2 deletions.
  1. +2 −1 CHANGES.txt
  2. +1 −1 nikola/nikola.py
@@ -1,9 +1,10 @@
New in Master
New in master
=============

Bugfixes
--------

* Change rewrite rule for fragment-only links (Issue #2132)
* Mention disabled plugins in ``nikola plugin --list-installed`` (Issue #2139)
* Don't examine all gallery image dates every build (Issue #2160)

@@ -1277,7 +1277,7 @@ def url_replacer(self, src, dst, lang=None, url_type=None):
# Now i is the longest common prefix
result = '/'.join(['..'] * (len(src_elems) - i - 1) + dst_elems[i:])

if not result:
if not result and not parsed_dst.fragment:
result = "."

# Don't forget the query part of the link

0 comments on commit 441090c

Please sign in to comment.