sruupl / batflat

Lightweight, fast and easy CMS for free. Bootstrap ready. https://batflat.org
MIT License
135 stars 54 forks source link

Page with a slug of "/" causes a bug #82

Closed nzjs closed 4 years ago

nzjs commented 4 years ago

Hi, when adding a new page and setting the slug as "/", it causes an issue with Settings > General > Homepage, and prevents this setting from being saved.

I realise now that if you want a page to be the home page (and appear as / ) then you still need to add a slug, and Batflat takes care of the rest nicely.

Perhaps prevent the user from setting "/" as the slug. When I entered this and saved the page, it blanks the slug but still seems to work.

michu2k commented 4 years ago

Thanks for the report

michu2k commented 4 years ago

Fixed