How to have exact opposite behaviour of CF Pages pretty URL??

https://wiki-8j2.pages.dev https://github.com/flashcarts/wiki I've found that Cloudflare Pages' built in pretty URL system will rewrite links to .html to remove this suffix. I want to have the exact opposite: if a user accesses the URL via pretty URL format, I want it to automatically append .html. I would rather user have the full path; the only reason the pretty URL is relevant for me is to make internal linking in markdown not a huge PITA to do. While I haven't tried it, I am naively thinking that if I make use of a _redirects file for this, it would cause an infinite loop of _redirects redirecting to .html and CF Pages 308-ing to non-.html. Is there a way to get around this?
1 Reply
lifehackerhansol
That's quite disappointing. Thanks for the answer