Skip to content
Permalink
Browse files
Fix #2132
  • Loading branch information
ralsina committed Oct 31, 2015
1 parent 4736322 commit 96b8e0bd97ff42b2acd6270315bfafc02202c8c7
Showing with 2 additions and 1 deletion.
  1. +1 −0 CHANGES.txt
  2. +1 −1 nikola/nikola.py
@@ -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
@@ -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 96b8e0b

Please sign in to comment.