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..

Goood morning, why is doing spryker/symfony a redirect to a own 404 page path? Example:

UKK0LRJ6A
UKK0LRJ6A Posts: 14 🧑🏻‍🚀 - Cadet

Goood morning,

why is doing spryker/symfony a redirect to a own 404 page path?

Example:
https://www.de.b2c.demo-spryker.com/teschd redirects to https://www.de.b2c.demo-spryker.com/error-page/404?errorMessage=No%20route%20found%20for%20%22GET%20https://www.de.b2c.demo-spryker.com/teschd%22

There will be a very good reason for it - but (at the moment) I would expect it without a redirect 🙂

Comments

  • U01DZ2DB92S
    U01DZ2DB92S Posts: 9 🧑🏻‍🚀 - Cadet

    We are currently working on the same topic. In the ErrorPageConfig you can configure that 404 does not lead to a redirect. Side effect ist that no user information is show as the routing is done before authentication.

  • UKK0LRJ6A
    UKK0LRJ6A Posts: 14 🧑🏻‍🚀 - Cadet

    thanks Sven - yep, we've done the same:

  • UKK0LRJ6A
    UKK0LRJ6A Posts: 14 🧑🏻‍🚀 - Cadet
  • U01DZ2DB92S
    U01DZ2DB92S Posts: 9 🧑🏻‍🚀 - Cadet
    edited December 2022

    We tried to add a route that catches all requests but this is not working as the “catchall” route matches before the StorageRouterPlugin. This plugin is responsible for the product page link building.