Skip to content

Commit

Permalink
Redirect chapters to anchors in page
Browse files Browse the repository at this point in the history
  • Loading branch information
sihugh committed Oct 11, 2019
1 parent fb192a4 commit 3077d62
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@

get "healthcheck", to: proc { [200, {}, [""]] }

get "*path/:variant" => "content_items#show",
# Testing guides as a single page
get '/voting-in-the-uk/polling-stations', to: redirect('/voting-in-the-uk#polling-stations')
get '/voting-in-the-uk/postal-voting', to: redirect('/voting-in-the-uk#postal-voting')
get '/voting-in-the-uk/voting-by-proxy', to: redirect('/voting-in-the-uk#voting-by-proxy')

get '*path/:variant' => 'content_items#show',
constraints: {
variant: /print/,
}
Expand Down

0 comments on commit 3077d62

Please sign in to comment.