Getting rid of the # format in Flex

Posted on Fri 12 January 2018 in Tech

Back when I was getting this blog set up, I had a short whinge about the default way that the Flex theme created links to pages.

Specficially, creating a link to "Tuna Patties" (for example), Flex would append the link with an identical stub, such as

I thought this was silly, so I found a way to fix it, but never bothered submitting a Pull Request to Alexandre because I figured it was intentional.

Well, it turns out I wasn't the only one. The good Dmytro Litvinov thought the same, and he created a Pull Request to fix it, almost a whole year ago!

Now, you can avoid this behaviour by simply adding DISABLE_URL_HASH = True to your!