Skip to content
Browse files
Do not replace relative links on the same page
Signed-off-by: Mykola Mandra <>
  • Loading branch information
algairim committed Jun 6, 2022
1 parent 7d0c88e commit 7e230256b2a471ccb567a5446b10a2c2d9601303
Showing 1 changed file with 1 addition and 1 deletion.
@@ -114,7 +114,7 @@ def replace_relative_links_in_content(content, relative_to_path)
next original unless replaceable_link?(link.path)

path = path_from_root(link.path, url_base)
path = path_from_root(relative_to_path, url_base)
url = url_for_path(path, relative_to_path)

next original unless url

0 comments on commit 7e23025

Please sign in to comment.