Open jacksontj opened 6 years ago
@jacksontj currently if you just add foobar without "/" the link would be localhost:9000foobar which would be inaccessible (vs. localhost:9000/foobar)
There could be two possible changes here:
Which one do you think is better? My opinion is that we should require leading slashes and append it when creating it if it does not exist
I'm not sure what the interraction here is with prefixes for apps.
I would assume we'd want to have everything not start with a slash, then the slash is defined from outside (root or prefix). then we'd just need to check on set that the page doesn't start with a slash (meaning none of them would).
Probably worth checking in with @ghowland to get his opinion on the matter.
Ok will get his opinion on this when he is back. If we agree on everything not start with a slash, we'll just update the db removing all the leading slashes and add the leading slash to the backend code instead
If I go to
/web_site_pages
and create one namedfoobar
then if I go tolocalhost:/foobar
the page is inaccessible. We should consolidate to either always require the leading slash or not -- and at a minimum not allow users to create pages that can never be accessed.