diff options
author | Struan Donald <struan@fury.ukcod.org.uk> | 2011-06-08 18:31:49 +0100 |
---|---|---|
committer | Struan Donald <struan@fury.ukcod.org.uk> | 2011-06-08 18:31:49 +0100 |
commit | 4e1b27d3fc4384c1c478864035529671bbd709f6 (patch) | |
tree | 0a7b1dc3734d5fef061d326aa4fb705bc47b33b5 | |
parent | 9ccb9c22b9868bdc8a47cc4e1fad2b3cd7dc8d30 (diff) |
set URIs to be relative so they work with our auth redirection
-rw-r--r-- | perllib/FixMyStreet/App.pm | 1 | ||||
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin.pm | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm index 811a40eb0..18f086868 100644 --- a/perllib/FixMyStreet/App.pm +++ b/perllib/FixMyStreet/App.pm @@ -22,6 +22,7 @@ use Catalyst ( 'Session::Store::DBIC', 'Session::State::Cookie', # FIXME - we're using our own override atm 'Authentication', + 'SmartURI', ); extends 'Catalyst'; diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm index b76447233..152a167e6 100644 --- a/perllib/FixMyStreet/App/Controller/Admin.pm +++ b/perllib/FixMyStreet/App/Controller/Admin.pm @@ -25,6 +25,12 @@ Redirect to index page. There to make the allowed pages stuff neater =cut +sub begin : Private { + my ( $self, $c ) = @_; + + $c->uri_disposition('relative'); +} + sub summary : Path( 'summary' ) : Args(0) { my ( $self, $c ) = @_; $c->go( 'index' ); |