Merge pull request #3819 from Icinga/feature/support-relative-links-with-a-base-path-2916

Support relative links with a base path
This commit is contained in:
Johannes Meyer 2019-06-24 15:41:50 +02:00 committed by GitHub
commit a527a80c93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -34,8 +34,9 @@ $innerLayoutScript = $this->layout()->innerLayout . '.phtml';
<meta name="apple-mobile-web-app-title" content="Icinga">
<link rel="mask-icon" href="<?= $this->baseUrl('img/website-icon.svg') ?>" color="#0096BF">
<?php if ($isIframe): ?>
<base target="_parent"/>
<base target="_parent">
<?php else: ?>
<base href="<?= $this->baseUrl(); ?>/">
<script type="text/javascript">
(function() {
var html = document.getElementsByTagName('html')[0];