From fa041ffba328c26a58506d5ccabed93d29106473 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Thu, 22 Jan 2009 12:00:36 +0100 Subject: [PATCH] Update to Catalyst 5.7100 and use $c->visit for start page --- lib/NDWeb.pm | 2 +- lib/NDWeb/Controller/Root.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/NDWeb.pm b/lib/NDWeb.pm index 5e57683..b5fa7e4 100644 --- a/lib/NDWeb.pm +++ b/lib/NDWeb.pm @@ -49,7 +49,7 @@ __PACKAGE__->config( page_cache => { disable_index => 1, }); - +__PACKAGE__->config( default_model => 'Model'); # Start the application __PACKAGE__->setup(qw/ -Debug diff --git a/lib/NDWeb/Controller/Root.pm b/lib/NDWeb/Controller/Root.pm index 6099db5..df700f9 100644 --- a/lib/NDWeb/Controller/Root.pm +++ b/lib/NDWeb/Controller/Root.pm @@ -33,7 +33,7 @@ NDWeb::Controller::Root - Root Controller for NDWeb sub index : Local Path Args(0) { my ( $self, $c ) = @_; - $c->res->redirect($c->uri_for('/wiki')); + $c->visit('/wiki/index'); } sub default : Path { -- 2.39.2