Skip to content
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

Routing issue with installation in a sub-directory #163

Closed
DHorchler opened this issue Feb 19, 2013 · 3 comments
Closed

Routing issue with installation in a sub-directory #163

DHorchler opened this issue Feb 19, 2013 · 3 comments

Comments

@DHorchler
Copy link

In parameters.yml I have
sub_dir: /mnc

In config.yml:

sonata:
resource: '@SonataAdminBundle/Resources/config/routing/sonata_admin.xml'
prefix: %sub_dir%/secured/admin
_sonata_admin:
resource: .
type: sonata_admin
prefix: /mnc/secured/admin

Up to here everything works fine, but if I use

sonata:
resource: '@SonataAdminBundle/Resources/config/routing/sonata_admin.xml'
prefix: %sub_dir%/secured/admin
_sonata_admin:
resource: .
type: sonata_admin
prefix: %sub_dir%/secured/admin

I get a route not found error.
I checked that in the latter case the line

    if (0 === strpos($pathinfo, '/%sub_dir%/secured/admin')) {

is generated in the cache file appdevUrlMatcher.php, which should in fact be

    if (0 === strpos($pathinfo, '/mnc/secured/admin')) {.

Regards

@rande
Copy link
Member

rande commented Feb 19, 2013

This is not a issue with PageBundle. Please open a bug for symfony

@rande rande closed this as completed Feb 19, 2013
@DHorchler
Copy link
Author

This is the response from the symfony experts:
It's a problem of the loader in SonataAdminBundle and should be reported there.
See: symfony/symfony#7129

@rande
Copy link
Member

rande commented Feb 20, 2013

@2manypeople just reply to your ticket

Good luck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants