I understand the title is not very descriptive. Here is what I mean.
I have urls like this:
/brain/music/music-note
/brain/sport/sport-note
etc.
I want them to be redirected to
/brain/music-note
/brain/sport-note
etc.
Here is what I have now:
[[redirects]]
from = "/brain/:category/*"
to = "/brain/:splat"
This doesn’t work. As far as I understand, the “splat” takes care of the star (any path). With :category I was hoping it would pick up the part of the path and drop it since it is not mentioned in the “to” section.
What is the syntax for the desired behavior? Is it even possible?