lib: Fix Url paramter encoding if parameter is a Url object
fixes #10321
This commit is contained in:
parent
1e35a17ec1
commit
b5c8579d0e
|
@ -171,7 +171,7 @@ class UrlParams
|
|||
|
||||
protected function urlEncode($value)
|
||||
{
|
||||
return rawurlencode((string) $value);
|
||||
return rawurlencode($value instanceof Url ? $value->getAbsoluteUrl() : (string) $value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue