diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-07-07 22:28:21 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-07-14 14:22:24 +0100 |
commit | 6f23d7b44ddc2556897e920cb88a3c81357605bf (patch) | |
tree | 48be64c12f96048a5df42888f34b0ada91d98a69 /perllib/FixMyStreet/App/Controller/Root.pm | |
parent | 863e8b2d548d95b89da068bd3361ce8131f77f55 (diff) |
Allow static home page template override.
If an /about/homepage.html template exists in your cobrand, it
will be used as the front page, and the normal front page will
be available at /report.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Root.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Root.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Root.pm b/perllib/FixMyStreet/App/Controller/Root.pm index 4f098dfc3..64d7fa6ae 100644 --- a/perllib/FixMyStreet/App/Controller/Root.pm +++ b/perllib/FixMyStreet/App/Controller/Root.pm @@ -58,6 +58,11 @@ sub index : Path : Args(0) { return; } + if ($c->stash->{homepage_template}) { + $c->stash->{template} = $c->stash->{homepage_template}; + $c->detach; + } + $c->forward('/auth/get_csrf_token'); } |