spatie/laravel-missing-page-redirector

Unused optional parameters

nckg opened this issue · 3 comments

nckg commented

When you call /old-blog with following configuration /old-blog/{url?} => '/new-blog/{url}', you will be redirected to /new-blog/{url} when I was expecting to see /new-blog.
Is this expected behaviour?

Thanks!

Could you try adding a /old-blog to /new-blog rule?

nckg commented

Oh yes, that works 😄 . Should have thought of this myself...

👌