Generated redirects always render despite _redirects file

Created on 8 April 2021, about 3 years ago
Updated 12 June 2023, about 1 year ago

Problem/Motivation

Due to the "shadowing" behavior of Netlify redirects, an entry in the _redirects file will be ignored if the file actually exists on the site. I notice that Tome Static generates static redirect paths, while Tome Netlify also adds these redirects to the _redirect file. Given this redundancy, only the static redirect path will be honored and the _redirect file will always be ignored.

I would like to ask if this is the intended functionality of Tome Netlify, and if there is any way to only generate the _redirect file instead? I prefer to use the _redirect file and let the server handle the routing, if possible.

Thanks.

Proposed resolution

If this functions as designed, I will add a script to my build process to remove the redundant static redirect paths. I just want to understand this functionality and make sure I'm not missing anything before I start a workaround.

πŸ’¬ Support request
Status

Active

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024