$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 <?php
return [ return [
'root_url' => '/public', 'root_url' => '/public/',
'database' => [ 'database' => [
'name' => 'mysql', 'name' => 'mysql',
'args' => [ 'args' => [

View File

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