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

Default Symfony 404 template overwrite by AvanzuAdminThemeBundle #119

Open
pich opened this issue Jul 7, 2016 · 3 comments
Open

Default Symfony 404 template overwrite by AvanzuAdminThemeBundle #119

pich opened this issue Jul 7, 2016 · 3 comments

Comments

@pich
Copy link

pich commented Jul 7, 2016

In Symfony 2.8.8 if AvanzuAdminThemeBundle is placed after TwigBundle in AppKerenl.php $bundles its overwrite default Symfony 404 error page as you can see in the attachment.
If it's placed before TwigBundle i get default 404 symfony error page as expected.
This issue occure only in urls that begins with "/admin" if you don't have route that match "/admin" prefix.
zrzut ekranu 2016-07-07 o 08 44 49

@hjanuschka
Copy link
Contributor

we are using KwrzTwigExceptionBundle to handle error's - having different error pages for admin/backend and frontend

sample config.yml

kwrz_twig_exception:
  enabled: true
  with_debug: true
  handlers:
      #403 auth failed should display a non backend error
    - { regex: ^\/backend, template: "FXFFrontendBundle:Exception:errorDefault.html.twig", status_code: [403]}
    - { regex: ^\/backend, template: "FXFAdminBundle:Exception:errorDefault.html.twig"}
    - { regex: ^\/, template: "FXFFrontendBundle:Exception:errorDefault.html.twig"}

@pich maybe that helps?

@shakaran
Copy link
Collaborator

@pich with new Symfony 3 or new versions of this bundle, do you still have the problem or it is reproducible?

@shakaran
Copy link
Collaborator

@pich @hjanuschka could you try please with latest master? I think that this issue if fully resolve, but it would be nice know your feedback. Thanks

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

No branches or pull requests

3 participants