Skip to content

Commit 7ed8678

Browse files
committed
url bug fix (symfony 4)
1 parent 5e2c182 commit 7ed8678

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Ajax/php/symfony/JsUtils.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@
99
class JsUtils extends \Ajax\JsUtils{
1010

1111
public function getUrl($url){
12-
//$request = Request::createFromGlobals();
1312
$router=$this->getInjected();
1413
if(isset($router)){
1514
try {
1615
$url=$router->generate($url);
1716
}catch (\Exception $e){
18-
return $router->getContext()->getBaseUrl();
17+
return $url;
1918
}
2019
}
2120
return $url;

0 commit comments

Comments
 (0)