This is an automated email from the ASF dual-hosted git repository.

heneveld pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-docs.git

commit ec2928ede921aac6d3f7daed44a5a697082d8053
Author: Mykola Mandra <[email protected]>
AuthorDate: Fri Jul 29 17:45:05 2022 +0100

    Revert "Do not replace relative links on the same page"
    
    This reverts commit 7e230256b2a471ccb567a5446b10a2c2d9601303.
---
 _plugins/jekyll_relative_links.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/_plugins/jekyll_relative_links.rb 
b/_plugins/jekyll_relative_links.rb
index 852981b4..65061611 100644
--- a/_plugins/jekyll_relative_links.rb
+++ b/_plugins/jekyll_relative_links.rb
@@ -114,7 +114,7 @@ module JekyllRelativeLinks
         else
           next original unless replaceable_link?(link.path)
 
-          path = path_from_root(relative_to_path, url_base)
+          path = path_from_root(link.path, url_base)
           url  = url_for_path(path, relative_to_path)
 
           next original unless url

Reply via email to