Class: JekyllRedirectFrom::RedirectPage
- Inherits:
-
Jekyll::Page
- Object
- Jekyll::Page
- JekyllRedirectFrom::RedirectPage
- Defined in:
- lib/jekyll-theme-cs50.rb
Instance Method Summary collapse
Instance Method Details
#set_paths(from, to) ⇒ Object
536 537 538 539 540 541 542 543 544 545 546 |
# File 'lib/jekyll-theme-cs50.rb', line 536 def set_paths(from, to) @context ||= context from = ensure_leading_slash(from) data.merge!( "permalink" => from, "redirect" => { "from" => from, "to" => to # Omit call to absolute_url, else redirect_to misinterprets relative URLs as absolute from / } ) end |