diff options
author | Yorhel <git@yorhel.nl> | 2021-01-29 10:48:57 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2021-01-29 10:48:59 +0100 |
commit | 1e12a4b6aa09e58e1a0d802b165cecf381abd8b6 (patch) | |
tree | 648ecec01f686bd6a83b48fc1457307335b38d23 /lib/VNWeb/Releases | |
parent | 6e7e9ea7ef755e0017f363409b11353aee86b471 (diff) |
AdvSearch: Convert old-url redirects into permanent redirects
I had them as temporary redirects in order to safely handle a rollback,
but that won't be necessary anymore.
Diffstat (limited to 'lib/VNWeb/Releases')
-rw-r--r-- | lib/VNWeb/Releases/List.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNWeb/Releases/List.pm b/lib/VNWeb/Releases/List.pm index 8e985a23..c3f07e78 100644 --- a/lib/VNWeb/Releases/List.pm +++ b/lib/VNWeb/Releases/List.pm @@ -45,7 +45,7 @@ TUWF::get qr{/r}, sub { my $q = eval { tuwf->compile({ advsearch => 'r' })->validate(filter_release_adv filter_parse r => $opt->{fil})->data; }; - return tuwf->resRedirect(tuwf->reqPath().'?'.query_encode(%$opt, fil => undef, f => $q), 'temp') if $q; + return tuwf->resRedirect(tuwf->reqPath().'?'.query_encode(%$opt, fil => undef, f => $q), 'perm') if $q; } $opt->{f} = advsearch_default 'r' if !$opt->{f}{query} && !defined tuwf->reqGet('f'); |