asker's avatar

Wrong Pagination rendering

Hi, I have a problem with pagination links. I have a pagination on link: http://localhost/laravel3/public/tours

I have this code in Blade: {!! $item->render() !!}

and pagination works fine except that Next and Prev links go to the: http://localhost/laravel3/public/tours/?page=2 instead of correct link http://localhost/laravel3/public/tours?page=2

Any help?

0 likes
6 replies
ELD's avatar

@asker We can't see the links you've posted because they point to localhost, which is your local computer. Since it's not exposed to the internet, we can't access it.

Try posting screenshots of the problem so we can better see what's going on.

pmall's avatar

Is the slash at the end bothering you ? It is the normal behavior of the paginator.

asker's avatar
asker
OP
Best Answer
Level 2

I found it: $items->setPath('tours');
Thanks guys!

bestmomo's avatar

Depending on server you would have this issue. To avoid any issue I always delete this trailing slash and my life is better :

$links = str_replace('/?', '?', $something->render());
pmall's avatar

@asker Something is wrong in your server configuration because the public folder is present in your url. The slash should be irrelevant.

Please or to participate in this conversation.