twbs-pagination
twbs-pagination copied to clipboard
href variable
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
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)