josecebe / twbs-pagination

jQuery pagination plugin (bootstrap powered)
http://josecebe.github.io/twbs-pagination/
Other
1.1k stars 405 forks source link

href variable #147

Open mete89 opened 7 years ago

mete89 commented 7 years ago

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

eugenesimakin commented 7 years ago

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)