Previous and Next Posts ─ Posts with Numbers: 10 jumps to 100


#1

Hello everybody,

I’m facing a weird issue here.

I’m creating a online version of a book and I want to name the urls with the number of the page like so: /page-01, /page-02, /page-03…

Inside each page I’m using {{ page.previous.url }} and {{ page.next.url }} to create navigation between the pages.

When navigated to /page-10, the next page url that appear is /page-100 instead of /page-11

I’ve searched a lot on Google to find something on StackOverflow but anything solved my problem.

Do you know some hack to get rid of this?

Thanks in advance