danielcgilibert / blog-template

📚 Openblog is an elegant, simple, and user-friendly blog. Focused on accessibility, SEO and performance.
https://blog-template-gray.vercel.app
GNU General Public License v3.0
658 stars 235 forks source link

Pagination works locally but not after deployment on the domain #45

Closed hongscave closed 10 months ago

hongscave commented 11 months ago

Hi guys, thanks for this template, love it. But I ran into an issue.

I have a finance category, for both run dev and run build (then preview) works normally. However, when I deployed it to my cloudflare host, the url for next page became example.com/category/finance/1/2 instead of: example.com/category/finance/2

This is weird. How can I fix this? Is this a bug? I made sure cloudflare us using the same version of node as my local(21.1.0) and tried netlify with same result.

borgfriend commented 10 months ago

I had the same issue. I looked into it and fixed the url generation.

Here is the PR for it https://github.com/danielcgilibert/blog-template/pull/47

hongscave commented 10 months ago

I had the same issue. I looked into it and fixed the url generation.

Here is the PR for it #47

Can confirm it's working. Thanks!