Skip to content

Commit

Permalink
🔨 #14
Browse files Browse the repository at this point in the history
  • Loading branch information
bjverde committed Dec 10, 2020
1 parent eae13d1 commit 91cf4f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion template/app/lib/util/AdiantiRouteTranslator.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ private static function replace($url, $pattern, $short)
if (strpos($url, $pattern) !== FALSE)
{
$url = str_replace($pattern.'&', $short.'?', $url);
$url = str_replace($pattern, $short, $url);
if (strlen($url) == strlen($pattern))
{
$url = str_replace($pattern, $short, $url);
}
}
return $url;
}
Expand Down

0 comments on commit 91cf4f5

Please sign in to comment.