Skip to content

Recently Updated macro generate wrong links to pages containing points ('.') in their names #523

Closed

Description

@mouhb

Describe the bug
The Recently Updated macro generates wrong links for results corresponding to pages containing points ('.') in their page names.

Steps to reproduce

  1. On a clean XWiki instance version 16.10.5 install the blog application version 9.13.12 and Pro macros version 1.26.16.
  2. Go to "Blog.WebHome" page and create a new blog post using this title "Blog post with a . point"
  3. Create a test page and insert the "recently-updated" macro in its content as follows
    {{recently-updated spaces='Blog' types="blogpost" /}}
  4. Save and open the page and notice the macro results

Expected results

The blog post page "Blog post with a . point" is available in the results and the link to the page is correct (https://xwikinstance.com/xwiki/bin/view/Blog/Blog%20post%20with%20a%20.%20point).

Current results

The blog post page "Blog post with a . point" is available in the results and but the link to the page is incorrect (https://xwikinstance.xwiki.com/xwiki/bin/view/Blog/Blog%20post%20with%20a%20/%20point). It seems that the points are not escaped when generating the document reference which explains the wrong URL.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions