summaryrefslogtreecommitdiff
path: root/src/Routing/LegacyUrlGenerator.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Routing/LegacyUrlGenerator.php')
-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;
}