Hi,
we use the following code to get the url auf a page an create a link to it:
## @param Page:title=Page Name|type=confluence-content|required=true|desc=Select a target page
#set ($page = $pageManager.getPage($spaceKey, $paramPage))
#set ($pageUrl = $req.contextPath + "/pages/viewpage.action?pageId=" + $page.id)
This works as expected in most cases. But if the title of the page contains any special character (&,+, ...) no page is found and no pageId gets returned.
I have found an issue, that can be related:
https://jira.atlassian.com/browse/CONFSERVER-11285
Is there a way to get the url of a page with special-chars in title?
Thanks!