Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix #2132
  • Loading branch information
ralsina committed Oct 31, 2015
1 parent 4736322 commit 96b8e0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -4,6 +4,7 @@ New in Master
Bugfixes
--------

* Change rewrite rule for fragment-only links (Issue #2132)
* Don't examine all gallery image dates every build (Issue #2160)

New in v7.7.3
Expand Down
2 changes: 1 addition & 1 deletion nikola/nikola.py
Expand Up @@ -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
Expand Down

0 comments on commit 96b8e0b

Please sign in to comment.