Skip to content

[to fix] issue with in internal path #83

@Snowbaha

Description

@Snowbaha

Hello,

I noticed I have lot of queries since I installed the plugin whereas I was thinknig it should be only check one time the url to redirect.

image

The issue comes internal paths, at first, I added a condition on : RedirectionPathResolver with someting like

if(false === strpos($source, '/_fragment/')){
//do the stuff
}

but there is lot of sources with this issue ('wishlist' (wishlist bundle) , 'block' / 'section' / 'page' (CMS bundle).

What is the best way to catch the good one to redirect (at home it should be "/") and not all the internal path render wiht controllers?

The best way should be to detect the good request but when I compare the Symfony\Component\HttpFoundation\Request, there is no way to know the good one.

Maybe add a paramter to excludes somes routes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions