You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by iu...@apache.org on 2022/06/10 12:45:45 UTC

[brooklyn-docs] branch master updated: Do not replace relative links on the same page

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 7e230256 Do not replace relative links on the same page
     new b9d9e7c5 Merge pull request #356 from algairim/fixes/relative-links
7e230256 is described below

commit 7e230256b2a471ccb567a5446b10a2c2d9601303
Author: Mykola Mandra <my...@cloudsoft.io>
AuthorDate: Mon Jun 6 15:54:44 2022 +0100

    Do not replace relative links on the same page
    
    Signed-off-by: Mykola Mandra <my...@cloudsoft.io>
---
 _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 2882abcb..3beb1380 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(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