Use configured prefix in base_url for mail.

This commit is contained in:
Luc Didry 2019-07-30 19:51:14 +02:00
parent cad24c3438
commit 357361e406
No known key found for this signature in database
GPG Key ID: EA868E12D0257E3C
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ sub send_mail {
my $subject = $c->param('subject');
my $msg = '';
my $base_url = $c->req->url->to_abs->path('r/');
my $base_url = $c->req->url->to_abs->path($c->config('prefix').'r/');
my $fixed_url = $base_url;
if ($c->config('fixed_domain')) {
$fixed_url->host($c->config('fixed_domain'));