I am developing a skeleton for myself and here I am using slim/twig-view.
I am running the application in a sub-directory (htdocs\iRaziul\Slim4) and using
selective/basepath to detect and set application basepath as Slim 4 requires it.
The issue I have found is that whenever I use
current_url it returns a strange output.
here I got the basepath twice.
I have found that at
TwigRuntimeExtension.php on line 81
$currentUrl = $this->basePath . $this->uri->getPath();
getPath method from URI also returns the full path including the basepath so it is obvious to get the basepath twice in the final output of current_url.
Although I can solve it by it will not solve the problem for others.