Skip to content

Commit

Permalink
#372 - Do not cache route if the resolved target is the same as the path
Browse files Browse the repository at this point in the history
  • Loading branch information
johanjanssens committed Jun 18, 2020
1 parent 01b7f8d commit c79c0e5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ public function onAfterApplicationInitialise(KEventInterface $event)
$url->setQuery($route->getQuery(true));

//Cache the route resolution
$this->__routes[$path] = $target;
if($path != $target) {
$this->__routes[$path] = $target;
}
}

}, JRouter::PROCESS_AFTER);
Expand Down

0 comments on commit c79c0e5

Please sign in to comment.