Skip to content

Default Symfony 404 template overwrite by AvanzuAdminThemeBundle #119

Open

Description

@pich

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

Activity

  1. hjanuschka commented on Jul 11, 2016

    @hjanuschka
    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?

  2. shakaran commented on Sep 15, 2017

    @shakaran
    Collaborator

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

  3. added this to the Version 2.0 Stable milestone on Sep 17, 2017
  4. shakaran commented on Oct 22, 2017

    @shakaran
    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions