mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Remove trailing slash on bootstrap example URL
This commit is contained in:
parent
df0f586d07
commit
0379d4910a
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ module Docs
|
|||
node.remove_attribute('data-example-id')
|
||||
prev = node.previous_element
|
||||
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
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ module Docs
|
|||
node.remove_attribute('data-example-id')
|
||||
prev = node.previous_element
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue