Skip to content

Commit

Permalink
fix URL escaper when making back-related links so that it works for n…
Browse files Browse the repository at this point in the history
…on-Latin chars
  • Loading branch information
yorkxin committed May 5, 2014
1 parent f8d3129 commit 29aaf87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/doc_page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def body_content
if @back
div.back {
text I18n.t("general.back_to") + " "
a(class: "back", href: URI.escape(@back, URI::PATTERN::RESERVED)) do
a(class: "back", href: URI.escape(@back)) do
text Titleizer.title_for_page(@back.split('#').first)
end
}
Expand Down
2 changes: 1 addition & 1 deletion lib/step.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def link_without_toc name
end

def _escaped str
URI.escape(str, URI::PATTERN::RESERVED)
URI.escape(str)
end

def simple_link name, options={}
Expand Down

0 comments on commit 29aaf87

Please sign in to comment.