Skip to content

Commit

Permalink
Issue #138: adapt the scheme of the start URL
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Jul 6, 2020
1 parent fe722f5 commit e17396c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions Kernel/Modules/Installer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1014,12 +1014,13 @@ sub Run {
$LayoutObject->Block(
Name => 'Finish',
Data => {
Item => Translatable('Finished'),
Step => $StepCounter,
Host => $ENV{HTTP_HOST} || $ConfigObject->Get('FQDN'),
Item => Translatable('Finished'),
Step => $StepCounter,
Host => $ENV{HTTP_HOST} || $ConfigObject->Get('FQDN'),
Scheme => ( ($ENV{HTTPS} && $ENV{HTTPS} eq 'ON') ? 'https' : 'http' ),
OTOBOHandle => $OTOBOHandle,
Webserver => $Webserver,
Password => $Password,
Webserver => $Webserver,
Password => $Password,
},
);
if ($Webserver) {
Expand Down
4 changes: 2 additions & 2 deletions Kernel/Output/HTML/Templates/Standard/InstallerFinish.tt
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
[% RenderBlockEnd("Restart") %]
<label>[% Translate("Start page") | html %]:</label>
<div class="Field">
<a href="http://[% Data.Host | html %]/[% Data.OTOBOHandle %]/index.pl">
http://[% Data.Host | html %]/[% Data.OTOBOHandle %]/index.pl
<a href="[% Data.Scheme || 'http' %]://[% Data.Host | html %]/[% Data.OTOBOHandle %]/index.pl">
[% Data.Scheme || 'http' %]://[% Data.Host | html %]/[% Data.OTOBOHandle %]/index.pl
</a>
</div>
<div class="Clear"></div>
Expand Down

0 comments on commit e17396c

Please sign in to comment.