A problem of a repeated parameter in the pagination links?

后端 未结 5 523
不思量自难忘°
不思量自难忘° 2021-01-16 03:15

The problem is that when I load page 2 for example the URL becomes:

http://domain.com/index.php?restaurant-id=45¤tpage=2

And that\'s fine but when

5条回答
  •  轮回少年
    2021-01-16 04:02

    Ok, in your example, your base link would be: http://domain.com/index.php?restaurant-id=45 if I'm not mistaken.

    All your pagination links should look like below, in order to keep the url in a good state.

    http://domain.com/index.php?restaurant-id=45
    

提交回复
热议问题