File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
lib/internal/Magento/Framework Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -591,8 +591,8 @@ protected function _getRoutePath($routeParams = [])
591
591
return $ routePath ;
592
592
}
593
593
$ routePath = $ this ->_getActionPath ();
594
- if ($ routeParams !== null ) {
595
- foreach ($ routeParams as $ key => $ value ) {
594
+ if ($ this -> _getRouteParams () ) {
595
+ foreach ($ this -> _getRouteParams () as $ key => $ value ) {
596
596
if ($ value === null || false === $ value || '' === $ value || !is_scalar ($ value )) {
597
597
continue ;
598
598
}
@@ -893,7 +893,7 @@ function ($item) use (&$isCached) {
893
893
private function createUrl ($ routePath = null , array $ routeParams = null )
894
894
{
895
895
$ escapeQuery = false ;
896
- $ escapeParams = true ;
896
+ $ escapeParams = false ;
897
897
898
898
/**
899
899
* All system params should be unset before we call getRouteUrl
@@ -1014,7 +1014,6 @@ public function escape($value)
1014
1014
if ($ value === null ) {
1015
1015
return '' ;
1016
1016
}
1017
-
1018
1017
$ value = str_replace ('" ' , '%22 ' , $ value );
1019
1018
$ value = str_replace ("' " , '%27 ' , $ value );
1020
1019
$ value = str_replace ('> ' , '%3E ' , $ value );
You can’t perform that action at this time.
0 commit comments