Skip to content

Commit

Permalink
slightly more realistic cookbook recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jun 8, 2013
1 parent 5a6f74f commit 22aa21d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -258,7 +258,7 @@ incoming requests is also quite common.
# Change base URL and remove leading slash from path in production mode
app->hook(before_dispatch => sub {
my $self = shift;
$self->req->url->base(Mojo::URL->new('http://example.com/rebased/'));
$self->req->url->base(Mojo::URL->new('http://example.com/myapp/'));
$self->req->url->path->leading_slash(0);
}) if app->mode eq 'production';

Expand Down

0 comments on commit 22aa21d

Please sign in to comment.