Skip to content

Duplicate namespace in generated discussion link when viewing the sitemap of a wiki page #1847

@roland-ruedenauer

Description

@roland-ruedenauer

When viewing the page http://localhost:5000/+sitemap/users/roland in the browser and hover
the discussion link I find the 'users' namespace duplicated in the generated url:
http://localhost:5000/users/users/roland/Discussion.

The problematic link is generated in this template:

{%- set supp_name = '%s/%s/%s' % (fqname.namespace, item_name, sub_item_name) %}

This line should probably corrected into:

{%- set supp_name = '%s/%s' % (fqname, sub_item_name) %}

Note that the discussion link generated looks ok when just viewing the page (not on the sitemap view).

Moin version: 2.0.0b2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions