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

CustomRouteEnhancer does not work for preview #7224

Open
ampaze opened this issue Dec 4, 2023 · 0 comments
Open

CustomRouteEnhancer does not work for preview #7224

ampaze opened this issue Dec 4, 2023 · 0 comments
Labels
Bug Error or unexpected behavior of already existing functionality

Comments

@ampaze
Copy link
Contributor

ampaze commented Dec 4, 2023

Q A
Sulu Version 2.5.9

Actual Behavior

I can use a CustomRouteEnhancer like so

    App\Routing\CustomRouteEnhancer:
        tags:
            - { name: dynamic_router_route_enhancer, priority: 10 }

and for example overwrite the view-template for certain pages.
This works fine when opening a page normally, but not in the preview panel in admin.

Expected Behavior

I expect preview and website to show the same content.

Steps to Reproduce

You could use a CustomRouteEnhancer to change the view template for a specific route and then compare preview and website.

Possible Solutions

I tried to understand what the preview is doing, but it is not something that is easily done...

@ampaze ampaze added the Bug Error or unexpected behavior of already existing functionality label Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Error or unexpected behavior of already existing functionality
Projects
None yet
Development

No branches or pull requests

1 participant