-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
Hi! Thanks for the great package.
In a multisite Statamic setup, redirects in vendor/rias/statamic-redirect/src/Http/Middleware/HandleNotFound.php seem to lose the site prefix.
Example:
Requested: /nl/old-page
Expected : /nl/new-page
Actual: /new-page
This happens because $redirect->destination() returns only a path, so the site URL isn’t prepended.
✅ My fix
I changed:
$destination = $redirect->destination();to:
$destination = $site->url() . $redirect->destination();and did the same in cacheNewRedirect().
Now redirects resolve correctly per site.
💬 Questions
- Is this intended behavior or a bug?
- Does this seem like the right fix?
- Would you be open to a PR?
Thanks!
Metadata
Metadata
Assignees
Labels
No labels