D
D
devilsD2020-10-29 12:36:45
Yii
devilsD, 2020-10-29 12:36:45

How to remove pagination redirect when going to the first page in yii rest controller?

The response from the api contains links to the next page and the previous page. But when requesting the link of the first page , it products/get?page=1
redirects to
products/get
What on the front side results in an error:

External CORS request redirect not allowed


How to remove this redirect, or immediately generate a link to the first page without the page parameter?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question