-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
View page button in PageAdmin with multisite #1744
Comments
With this setup If I create symfony route (which means the page bundle does not hand the route and is configured to ignore it) |
_locale is ignored in this |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This has not been resolved |
One more bug that is the same thing at the same button: |
I have a fresh installation of Admin and Page Bundle on a fresh Symfony 6.4.*. Clicking on "View page" button gives this exception: No route found for "GET http://domain.test/admin/app/sonatapagepage/12/sonatapageblock/-/custom" (from "http://domain.test/admin/app/sonatapagepage/12/sonatapageblock/list") Can somebody explain me, what is wrong here? It's a fresh install and I just added some pages in the admin and trying things out. |
Environment
Sonata packages
show
Symfony packages
show
PHP version
Subject
PageBundle view page button does not work as expected. it renders wrong url.
Background
I'm using
multisite: host_with_path_by_locale
and I have defined 2 sites. One has relative path of null and another has/en
and they are in different locale.Problem
I go to
/en/admin/app/sonatapagepage/112/edit?site=2
which is the root page of the site where the relative page has been defined as/en
In the View page-button the rendered url is
/en/en/
and in this case it should be just/en
The text was updated successfully, but these errors were encountered: