Zend\Uri\Uri::normalize
Normalize the URI
Normalizing a URI includes removing any redundant parent directory or current directory references from the path (e.g. foo/bar/../baz becomes foo/baz), normalizing the scheme case, decoding any over-encoded characters etc. Eventually, two normalized URLs pointing to the same resource should be equal even if they were originally represented by two different strings
Signature
public function normalize()
Returns
- Uri