@mynavu I saw your GitHub, but I try not to spend time swimming in other people’s code if I can avoid it.
Now that I better understand the situation, this is what I currently see…
Without .html
:
With .html
:
Which of course, is due to your code like this:
Since having clean URL’s that don’t contain file extensions in the URL is preferable for most people, instead of trying to force them, I’d personally adjust the application so it doesn’t require them.
I’d change all the links from things like /stamps.html
to /stamps
I’d adjust the conditionals to check for values like /stamps
If you do want to try and force .html
extensions, you’re likely to need to use Edge Functions as per: