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 Sep 12, 2019
1 parent 7945c1d commit 0158643
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@

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

# 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 0158643

Please sign in to comment.