Use configured prefix in base_url for mail.
This commit is contained in:
parent
cad24c3438
commit
357361e406
|
@ -29,7 +29,7 @@ sub send_mail {
|
||||||
my $subject = $c->param('subject');
|
my $subject = $c->param('subject');
|
||||||
my $msg = '';
|
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;
|
my $fixed_url = $base_url;
|
||||||
if ($c->config('fixed_domain')) {
|
if ($c->config('fixed_domain')) {
|
||||||
$fixed_url->host($c->config('fixed_domain'));
|
$fixed_url->host($c->config('fixed_domain'));
|
||||||
|
|
Loading…
Reference in New Issue