Skip to content

Commit

Permalink
Merge pull request #1213 from codidact/art/allow-slug-slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtOfCode- authored Oct 4, 2023
2 parents d040f8d + 685a1fb commit 2c992d8
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,8 +158,8 @@
get ':id/:answer', to: 'posts#show', as: :answer_post
end

get 'policy/:slug', to: 'posts#document', as: :policy
get 'help/:slug', to: 'posts#document', as: :help
get 'policy/:slug', to: 'posts#document', as: :policy, 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 2c992d8

Please sign in to comment.