Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

Let "redirect" routes capture subpaths too #130

Open
meshy opened this issue Oct 31, 2017 · 0 comments
Open

Let "redirect" routes capture subpaths too #130

meshy opened this issue Oct 31, 2017 · 0 comments

Comments

@meshy
Copy link
Owner

meshy commented Oct 31, 2017

If /articles/ moves to /blog/, it would be perfectly reasonable to set up a single URLRedirect to capture and redirect all subpaths rather than having to set up one per URL.

I see two choices:

  1. Extend URLRedirect and RouteRedirect to have optional "include subpaths" booleans (I currently favour this approach).
  2. Add new redirect models for this use case.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant