-
Bug
-
Resolution: Cannot Reproduce
-
Neutral
-
None
-
5.4.4
-
None
When e.g. a category contains a ~ in its node name and when it's used in the website in an URI (by means of selector parameter, see info.magnolia.cms.core.Path#SELECTOR_DELIMITER) then the node will not be resolvable, because the tilde will be removed.
How to reproduce
- Goto STK demo and open categories app
- Rename a category (e.g. Finance to Finance~) using the ~ character, activate changes
- Open localhost:8080/magnoliaPublic/demo-project/service/category~Finance~~.html
- Error will show that category cannot be found
Source
The ~ (tilde) is a reserved character due to being used as selector delimiter (see info.magnolia.cms.core.Path#SELECTOR_DELIMITER).
Considered solutions
- prevent entering the ~ as part of a page name e.g. by validation or
- always sanitize the path (by replacing tilde with e.g. dash) upon storage.
- support both selector or node-name when there's no ambiguity (and specify who should win otherwise)
Acceptance criteria
- relates to
-
PAGES-60 Page node names that contain ~ (tilde) cannot be rendered
- Closed