Skip to content

Commit

Permalink
@jonmifsud’s [Fix for symphony 2.6.x](symphonists#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
animaux committed Jan 10, 2019
1 parent 6e5571a commit 3ac89c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension.driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,11 @@ public function frontendPrePageResolve($context)
if (isset($page_can_resolve['filelocation'])) {
// Remove the PAGES path, .xsl and replace any _ with /.
// Basically reconstruct the 'path' as if it was a URL request
$resolved_path = '/' . str_replace(
$resolved_path = str_replace(
array(PAGES . '/', '.xsl', '_'),
array('', '', '/'),
$page_can_resolve['filelocation']
) . '/';
);

// Now does the page we're routing from already exist in Symphony? No? Redirect.
if (preg_match('~^' . preg_quote($resolved_path) . '~i', $route['original']) == false) {
Expand Down
3 changes: 3 additions & 0 deletions extension.meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
</author>
</authors>
<releases>
<release version="3.2" date="2019-01-10" min="2.6" max="2.x.x">
* @jonmifsud’s [Fix for symphony 2.6.x](https://github.com/symphonists/url_router/pull/25)
</release>
<release version="3.1" date="2014-10-29" min="2.4" max="2.5.x">
* [#20](https://github.com/symphonists/url_router/issues/20) Fix routing on Symphony 2.4+
* Use `PageManager` instead of internal functions
Expand Down

0 comments on commit 3ac89c8

Please sign in to comment.