summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-08-12 13:41:33 +0200
committermsquare <msquare@notrademark.de>2018-08-12 17:36:52 +0200
commitf46e921b710b02d5a1f17f0dd076a5bf085ae735 (patch)
treea74ffe30a07e1e59886262b7d56f65f55e52049c /src
parent98b03d5c679e91891d6283d04613c2afc29edf59 (diff)
Use domain for links to '/' to fix assets URLs on subdirectories
Diffstat (limited to 'src')
-rw-r--r--src/Routing/LegacyUrlGenerator.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Routing/LegacyUrlGenerator.php b/src/Routing/LegacyUrlGenerator.php
index 4c1e736b..fdac4f96 100644
--- a/src/Routing/LegacyUrlGenerator.php
+++ b/src/Routing/LegacyUrlGenerator.php
@@ -4,7 +4,7 @@ namespace Engelsystem\Routing;
/**
* Provides urls when webserver rewriting is disabled.
- *
+ *
* The urls have the form <app url>/index.php?p=<path>&<parameters>
*/
class LegacyUrlGenerator extends UrlGenerator
@@ -24,6 +24,7 @@ class LegacyUrlGenerator extends UrlGenerator
$uri = parent::linkTo('index.php', $parameters);
$uri = preg_replace('~(/index\.php)+~', '/index.php', $uri);
+ $uri = preg_replace('~(/index\.php)$~', '/', $uri);
return $uri;
}