X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/adbf44aae48c2a84efaf214b2541dc44f962ae44..a3a778ec7c2fe89c4cb48f42be3b0821530199d8:/redmine/redmine_publications/routes.rb?ds=inline diff --git a/redmine/redmine_publications/routes.rb b/redmine/redmine_publications/routes.rb index bdca2b83..8752c692 100644 --- a/redmine/redmine_publications/routes.rb +++ b/redmine/redmine_publications/routes.rb @@ -1,10 +1,10 @@ -connect 'publications/:pub', - :controller => 'publications', - :action => 'redirect_to_platform' - -connect 'publications/:pub/:action', +connect 'publications/:action', :controller => 'publications', :format => 'html' - -connect 'publications/:pub/:action.:format', + +connect 'publications/:action.:format', :controller => 'publications' + +connect 'publications/:action/:pub', + :controller => 'publications', :format => 'json', + :pub => /[^\/?]+/