paginationjs icon indicating copy to clipboard operation
paginationjs copied to clipboard

Strange URL param appears

Open ZeroCoolHacker opened this issue 4 years ago • 0 comments

Describe the bug the datasource url is giving me a wierd variable in it as underscore () http://localhost:8000/business/prefund-requests/2fe0c1cf-4847-4bea-b2f9-4324635edecd?order=ASC&size=1&page=1&=1615547375208

To Reproduce

$(document).ready(function() {
            $('#pagination-container').pagination({
                dataSource: 'http://localhost:8000/business/prefund-requests/2fe0c1cf-4847-4bea-b2f9-4324635edecd?order=ASC',
                locator: 'result.prefundList',
                totalNumberLocator: function (response) {console.log(response);return 1;},
                pageNumber: 1,
                pageSize: 1,
                alias: {
                    pageNumber: 'page',
                    pageSize: 'size'
                },
                ajax: {
                    type: 'GET',
                    dataType: 'json',
                },
                callback: function(data, pagination) {
                    // template method of yourself
                    showDataInTablePaginationLib(data);
                }
            })
        })

Expected behavior The request should be sent to http://localhost:8000/business/prefund-requests/2fe0c1cf-4847-4bea-b2f9-4324635edecd?order=ASC&size=1&page=1

Versions:

  • Pagination: [ 2.1.5]
  • jQuery [3.6.0]
  • Browser [FireFox]

Additional context Add any other context about the problem here.

ZeroCoolHacker avatar Mar 12 '21 11:03 ZeroCoolHacker