use absolute base href for older browsers
authorMichael Wallner <mike@php.net>
Sun, 8 Dec 2013 10:30:56 +0000 (11:30 +0100)
committerMichael Wallner <mike@php.net>
Sun, 8 Dec 2013 10:30:56 +0000 (11:30 +0100)
index.php

index 5124243fd8f262da1d65191bf4596829e0dcf8ea..0dd361f576b0dfe153468645513f8691f5fb552d 100644 (file)
--- a/index.php
+++ b/index.php
@@ -206,7 +206,7 @@ ob_start($s);
 <head>
        <meta charset="utf-8">
        <title><?=ns($p)?></title>
-       <base href="<?=$b?>/">
+       <base href="<?=new http\Url($b, null, http\Url::FROM_ENV | (http\Url::STRIP_ALL & ~http\Url::STRIP_PATH))  ?>/">
        <link rel="stylesheet" href="index.css">
        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> 
 </head>