Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Commit

Permalink
no need for the /wiki redirect. This was a hack because of the way we…
Browse files Browse the repository at this point in the history
… were doing paths before, but now with the content being stored in the root of the wiki branch, all is good again.
  • Loading branch information
cv committed Mar 15, 2013
1 parent 04a1f80 commit cb667dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions config/routes.rb
Expand Up @@ -12,8 +12,7 @@
Precious::App.set(:wiki_options, ref: 'wiki', universal_toc: false) Precious::App.set(:wiki_options, ref: 'wiki', universal_toc: false)
mount Precious::App => '/admin' mount Precious::App => '/admin'


get '/wiki/:page' => 'wiki#display', as: :wiki get '/:page' => 'wiki#display', as: :wiki
get '/:page' => redirect('/wiki/%{page}')


# The priority is based upon order of creation: # The priority is based upon order of creation:
# first created -> highest priority. # first created -> highest priority.
Expand Down

0 comments on commit cb667dc

Please sign in to comment.