Codeinwp / raft

Issues should be created in https://github.com/Codeinwp/otter-blocks
7 stars 2 forks source link

Changing pagination format in the URL #59

Closed stefan-cotitosu closed 10 months ago

stefan-cotitosu commented 1 year ago

What problem does this address?

A customer asked how the pagination can be changed in the URL.

With the Raft theme, when pagination is enabled on the blog page, the next page generates the following URL

blog/?query-4-page=2

while with the Twenty Twenty-Three theme the URL is

blog/page/2/

I tried changing the permalinks and I don't get the same format as in Twenty Twenty-Three.

What is your proposed solution?

Format the pagination url as page/_pagenumber/ instead of query-4-page=_pagenumber

Requested here: https://secure.helpscout.net/conversation/2361470032/385548/

Will this feature require documentation? (Optional)

No.

JohnPixle commented 1 year ago

Thanks Stefan!

SOunds like something we need to do in the template, I am not sure how to do that, but I will look into it. Hardeep if you want to evaluate this overall, or provide any insights, let me know!

Thanks!

HardeepAsrani commented 1 year ago

@JohnPixle This should also be fixed by this: https://github.com/Codeinwp/raft/commit/e9ea99fc05f6f290ff06ae37575b2315ffd0acb2 as it was being caused by this https://github.com/Codeinwp/raft/issues/58

JohnPixle commented 1 year ago

Super! Thanks Hardeep!