Verified Commit cd0c4fea authored by Luc Didry's avatar Luc Didry

Fix warning in change lang endpoint

parent 89933f22
......@@ -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('/');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment