$config['root_url'] now needs trailing slash!

This commit is contained in:
William 2022-01-20 09:34:52 +01:00
parent 68006814cc
commit 0646016859
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
<?php
return [
'root_url' => '/public',
'root_url' => '/public/',
'database' => [
'name' => 'mysql',
'args' => [

View File

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?=htmlspecialchars($title);?> Stafett for livet</title>
<link rel="stylesheet" href="<?=$this->config['root_url']?>/static/style/main.css">
<link rel="stylesheet" href="<?=$this->config['root_url']?>static/style/main.css">
<body>
<div id="header">
@ -18,7 +18,7 @@
<div id="menu">
<small>
<span>Ikke pålogget</span>
<a href="<?=$this->config['root_url']?>/login.php">Logg inn</a>
<a href="<?=$this->config['root_url']?>login.php">Logg inn</a>
</small>
</div>
@ -28,8 +28,8 @@
<div id="nav">
<ul>
<li><a href="<?=$this->config['root_url']?>/index.php">Forside</a></li>
<li><a href="<?=$this->config['root_url']?>/login.php">Logg inn</a></li>
<li><a href="<?=$this->config['root_url']?>index.php">Forside</a></li>
<li><a href="<?=$this->config['root_url']?>login.php">Logg inn</a></li>
<li><a href="<?=$this->config['root_url']?>">Eksempel</a></li>
</ul>
</div>