What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Redirect a core Spryker URL to my custom module

U057U47RCBD
U057U47RCBD Posts: 28 🧑🏻‍🚀 - Cadet
edited May 2023 in Help

Hi Everyone

Need help with one issue that I am facing , I am trying to redirect a core spryker URL to my custom module , to do that I have extended the core RouteProviderPlugin and overrided the addRoutes() method to map url to my custom controller , also registered the routeproviderplugin in RouteDependencyProvider , but still the URL is redirected to Spryker project module. Is there anything else that needs to be done ?

Comments

  • giovanni.piemontese
    giovanni.piemontese Technical Lead @ Löffelhardt Spryker Solution Partner Posts: 871 🧑🏻‍🚀 - Cadet

    did u generate again the route cache for yves?

  • U057U47RCBD
    U057U47RCBD Posts: 28 🧑🏻‍🚀 - Cadet

    Yes I execute dthe router cache warm up command

  • U057U47RCBD
    U057U47RCBD Posts: 28 🧑🏻‍🚀 - Cadet

    I can access the new module for any other url , that I add in addRoute() , but when I try to override the 'register' url in my new module , the access goes to default CustomerPage module

  • giovanni.piemontese
    giovanni.piemontese Technical Lead @ Löffelhardt Spryker Solution Partner Posts: 871 🧑🏻‍🚀 - Cadet

    maybe the customerpage routing plugin is registered after yours... did u try to register your routing plugin as last one?

  • U057U47RCBD
    U057U47RCBD Posts: 28 🧑🏻‍🚀 - Cadet

    yes I did that too , but still default one is getting called