Fix warning in change lang endpoint

This commit is contained in:
Luc Didry 2018-10-28 21:52:21 +01:00
parent 89933f22e7
commit cd0c4fea4e
No known key found for this signature in database
GPG Key ID: EA868E12D0257E3C
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ sub change_lang {
}
if ($c->req->headers->referrer
&& Mojo::URL->new($c->req->headers->referrer)->host eq $c->req->url->host) {
&& Mojo::URL->new($c->req->headers->referrer)->host eq $c->req->url->to_abs->host) {
return $c->redirect_to($c->req->headers->referrer);
} else {
return $c->redirect_to('/');