twbs-pagination icon indicating copy to clipboard operation
twbs-pagination copied to clipboard

href variable

Open mete89 opened this issue 8 years ago • 1 comments

Hi,

Is there any example related with href variable? What I want is simply add page numbers at the end of the page number urls like "/1" , "/2". I initialize plugin like below. What I get is exact url of the page without any change. I use materialize framework (also handlebars with same curly braces {{}} ). There is no bootstrap.

Jquery version: 2.1.4 twbs-pagination version: 1.4.1

        $('#pagination-demo').twbsPagination({
            totalPages: 10,
            visiblePages: 5,
            href: "/page/{{number}}.html",
            first: "<i class='icon-navigation-first-icon-2'></i>",
            last: "<i class='icon-navigation-last-icon-2'></i>",
            prev: "<i class='icon-navigation-prev-icon-2'></i>",
            next: "<i class='icon-navigation-next-icon-2'></i>",
            initiateStartPageClick: false
        });

Thanks

mete89 avatar Dec 27 '16 15:12 mete89

Hi! It seems like the plugin doesn't support page number in path (only in query string). This is a bug (or new feature request)

eugenesimakin avatar Dec 28 '16 19:12 eugenesimakin