picocms / Pico

Pico is a stupidly simple, blazing fast, flat file CMS.
http://picocms.org/
MIT License
3.83k stars 614 forks source link

Formatting of menu links #524

Closed Zarxrax closed 4 years ago

Zarxrax commented 4 years ago

I just simultaneously upgraded to Pico 2.1 while switching hosting providers for my site, so I'm not sure which of those things might have caused this change.

My links in the menu used to be formatted like "site.com/?main" but now they are formatted like "site.com/main".

I'm not sure what might have happened to change to cause the question marks to be removed, but it seems to be causing some issues with some of my pages. Any ideas what I might need to look at to get this back to the old behavior?

PhrozenByte commented 4 years ago

You enabled URL rewriting, see http://picocms.org/docs/#url-rewriting

You can force-disable it by adding the following to your config/config.yml:

rewrite_url: false
Zarxrax commented 4 years ago

Thanks, that did the trick. Apparently it enabled by default on my new server but not on the old one.