Hi,
I was wondering what would be the simplest way to validate website page names more strictly than pages app does by default. I would like to basically allow only a subset of characters that is currently possible (e.g. lower case letters and only ascii alphabets and numbers).
Looking at the code it seems that it is using same logic than every other workspace but with website the names end up in page URLs causing the need for encoding URLs. Technically encoding is not an issue but encoded URLs are sometimes directly visible to users and look like garbage. One idea is to add custom validators to pages-app but that needs to be done in multiple places as there are multiple editors that allow editing the page name.
BR, Samuli
... but with website the names end up in page URLs causing the need for encoding URLs.
Hi, and thanks for responses.
Roman: utf8 technically works but I still want to limit the user to a subset to avoid encoded URLs showing up. Persons creating the webpages are often somewhat untechnical and unaware of the implications of using letters like ‘ä’ in page names.
And reading from Jordies response “we always do” might implicate that this is maybe a common requirement. 😊
Thanks for the help. This confirms that decorating the pages-app is the way to go.
Happy holidays, Samuli