Skip to content

Commit

Permalink
Add host to redirect url
Browse files Browse the repository at this point in the history
  • Loading branch information
paulej72 committed Feb 18, 2015
1 parent 0959e97 commit c14d265
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/Journal/journal.pl
Expand Up @@ -943,7 +943,7 @@ sub _printHead {
$data->{useredit} = $useredit;
}

$data->{return_url} = $ENV{REQUEST_URI};
$data->{return_url} = "//".$ENV{HTTP_HOST}.$ENV{REQUEST_URI};

slashDisplay('journalhead', $data);
}
Expand Down
2 changes: 1 addition & 1 deletion themes/default/htdocs/article.pl
Expand Up @@ -167,7 +167,7 @@ sub main {
}
}

my $return_url = $ENV{REQUEST_URI};
my $return_url = "//".$ENV{HTTP_HOST}.$ENV{REQUEST_URI};

slashDisplay('display', {
poll => $pollbooth,
Expand Down
2 changes: 1 addition & 1 deletion themes/default/htdocs/index.pl
Expand Up @@ -307,7 +307,7 @@ sub main {
my $metamod_reader = getObject('Slash::Metamod', { db_type => 'reader' });
$metamod_elig = $metamod_reader->metamodEligible($user);
}
my $return_url = $ENV{REQUEST_URI};
my $return_url = "//".$ENV{HTTP_HOST}.$ENV{REQUEST_URI};

slashDisplay('index', {
metamod_elig => $metamod_elig,
Expand Down

0 comments on commit c14d265

Please sign in to comment.