layout: Add base path

refs 
This commit is contained in:
Johannes Meyer 2019-06-06 08:16:12 +02:00
parent dbd5e064ff
commit 23776152eb
1 changed files with 2 additions and 1 deletions
application/layouts/scripts

View File

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