Skip to content

Commit

Permalink
help center & policy post history routes should allow slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
Oaphi committed Dec 15, 2024
1 parent 2fd0544 commit 59af663
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@
get ':id/:answer', to: 'posts#show', as: :answer_post
end

get 'policy/:slug/history', to: 'post_history#slug_post', as: :policy_post_history
get 'policy/:slug/history', to: 'post_history#slug_post', as: :policy_post_history, constraints: { slug: /.*/ }
get 'policy/:slug', to: 'posts#document', as: :policy, constraints: { slug: /.*/ }
get 'help/:slug/history', to: 'post_history#slug_post', as: :help_post_history
get 'help/:slug/history', to: 'post_history#slug_post', as: :help_post_history, constraints: { slug: /.*/ }
get 'help/:slug', to: 'posts#document', as: :help, constraints: { slug: /.*/ }

get 'tags', to: 'tags#index', as: :tags
Expand Down

0 comments on commit 59af663

Please sign in to comment.