Hello i'm using laravel 5 for my project.
i have routes like :
news/some-news-title/galery?page=2#photo/
it works great for my paginating galleries. But i saw that when i add extra parameter end of to url , it still works.
example :
news/some-news-title/galery?page=2/amp
news/some-news-title/galery?page=2/asdasd
normally it should not work. But it shows same gallery page.
i tried some codes , but it did not work for me :
Route::any('news/{any}/{any?}/amp', function(){
return 'error';
});
Route::any('news/{any}/{any}/{any}', function(){
return 'error';
});
when tried these codes , it still opens same page.
How can i block or redirect this parameters to 404 page ?
Thanks !