Skip to content

Conversation

erezrokah
Copy link
Contributor

@erezrokah erezrokah commented Apr 8, 2021

- Summary

Fixes #1299
Fixes #1221

This worked and served a.html instead of rewriting if a.html existed

[[redirects]]
from = "/a"
status = 200
to = "/docs/a"

This didn't (default status is 301) and always redirected even if a.html existed

[[redirects]]
from = "/a"
to = "/docs/a"

See more here about file shadowing

- Test plan

Added a test

- A picture of a cute animal (not mandatory but encouraged)
image

@erezrokah erezrokah requested a review from a team as a code owner April 8, 2021 13:56
@github-actions github-actions bot added the type: bug code to address defects in shipped code label Apr 8, 2021
@erezrokah erezrokah merged commit 91da1b5 into main Apr 8, 2021
@erezrokah erezrokah deleted the fix/redirect_shadowing branch April 8, 2021 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File shadowing not working for netlify dev and redirects always apply. Splat redirects should not be applied to other matching redirects
2 participants