-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support base prefix for url generator #183
Comments
Here is a workaround now. Place that code into <?php
declare(strict_types=1);
return [
function (\Psr\Container\ContainerInterface $container) {
$urlGenerator = $container->get(\Yiisoft\Router\UrlGeneratorInterface::class);
$urlGenerator->setUriPrefix('/blog');
},
]; But be careful, because the |
Also current debugger doesn't understand the |
It's not a group. It's a base url. |
In router url generator already support this via Seems, adding router dependency to assets package is a bad idea. Maybe we can resolve this problem via configuration of packages or application templates. |
Worth a look. I'm checking... |
I want to write an application that will live under some path, e.g.
/blog
So I have two ways to write my urls:
/blog
If I choose the first option that I need to rewrite all my urls when I want to move from
/blog
to/
.There are more problems than I described above: proxying, making extensions and etc.
The text was updated successfully, but these errors were encountered: