soflyy / oxygen-bugs-and-features

Bug Reports & Feature Requests for Oxygen
https://oxygenbuilder.com/
314 stars 29 forks source link

Template URL shouldn't use it's name as a slug #2775

Open bohdanps opened 2 years ago

bohdanps commented 2 years ago

By default when you create an Oxygen template, it's slug replicates templates name and saves it as a pretty link. For example, if you create a template Shop, its permalink will be domain.com/shop.

This may conflict with another post types wich do need pretty links, and templates don't.

So, if you have a page with a slug /shop and then you create a template named Shop, when you go to /shop you will be redirected to the template editor page, not the shop page. This may create a lot of confusion for the users and create some bugs.

image

Maybe the solution is to automatically exclude template post type from reformatting it's url and maintain it as id based URL.

perrelet commented 2 years ago

Wowza @bohdanps, this explains so much. 🤦‍♂️