spatie / laravel-missing-page-redirector

Redirect missing pages in your Laravel application
https://freek.dev/598-retain-your-seo-worth-by-correctly-redirecting-missing-pages-in-a-laravel-application
MIT License
488 stars 38 forks source link

Problem with redirecting existing route structure. #72

Closed digitalunityca closed 2 years ago

digitalunityca commented 2 years ago

Hi,

Thank you for this package!

I have i little problem,i have a route '/product/{slug}' in the web.php file.

When i add in the redirects config array '/product/oldSlug' => /product/newSlug i had this error:

Argument 1 passed to Symfony\Component\HttpFoundation\Response::setContent() must be of the type string or null, object given, called in /vendor/laravel/framework/src/Illuminate/Http/Response.php on line 65

When i comment the route everything works.

Php 7.4 Laravel 8.3

Tnx!