In symfony request how do I get the uri path without the query params?
$request->getPathInfo()
is what you're looking for.
strtok($request->getRequestUri(), '?');
...or...
$request->getBaseUrl() . $request->getPathInfo();
$request->getPathInfo()
is what you're looking for.
strtok($request->getRequestUri(), '?');
...or...
$request->getBaseUrl() . $request->getPathInfo();