Remove trailing slash on bootstrap example URL

This commit is contained in:
firewalker06 2017-11-22 14:21:01 +07:00 committed by Thibaut Courouble
parent df0f586d07
commit 0379d4910a
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ module Docs
node.remove_attribute('data-example-id') node.remove_attribute('data-example-id')
prev = node.previous_element prev = node.previous_element
prev = prev.previous_element until prev['id'] prev = prev.previous_element until prev['id']
node.inner_html = %(<a href="#{current_url}/##{prev['id']}">Open example on getbootstrap.com</a>) node.inner_html = %(<a href="#{current_url}##{prev['id']}">Open example on getbootstrap.com</a>)
end end
end end

View file

@ -26,7 +26,7 @@ module Docs
node.remove_attribute('data-example-id') node.remove_attribute('data-example-id')
prev = node.previous_element prev = node.previous_element
prev = prev.previous_element until prev['id'] prev = prev.previous_element until prev['id']
node.inner_html = %(<a href="#{current_url}/##{prev['id']}">Open example on getbootstrap.com</a>) node.inner_html = %(<a href="#{current_url}##{prev['id']}">Open example on getbootstrap.com</a>)
end end
end end