Project

General

Profile

Actions

Defect #44623

open

Wiki include() macro adds faulty "Edit this section"-links

Added by Lennart Kindermann about 2 hours ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Wiki
Target version:
-
Resolution:
Affected version:

Description

Summary

Starting with Redmine 7, included sections (via the include() macro) on wiki pages are now displaying the "Edit this section"-link, which are generated after resolving the macros and therefore pointing to the wrong edit page.

On Redmine 6.0.7 the links were not rendered.

On Redmine 7.0.2 the links are generated and as the sections are counting up, the links become unusable, starting with the first included section, see attached screenshots.

Steps to reproduce

Wiki Page 1

# Test Wiki

## Some local heading

Local text

{{include(test2:TEST2)}}

## More local heading

More local text

Wiki Page 2 (included in page 1)

# Included Heading 1

## Included Heading 2 

Included text

Environment

Environment:
  Redmine version                7.0.2.stable
  Ruby version                   4.0.7-p0 (2026-09-15) [x86_64-linux]
  Rails version                  8.1.4
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
Redmine settings:
  Redmine theme                  Default
SCM:
  Subversion                     1.14.5
  Mercurial                      7.0.1
  Bazaar                         3.3.11
  Git                            2.47.3
  Filesystem                     
Redmine plugins:
  no plugin installed

Files

Screenshot_20261015_150453.png (44.9 KB) Screenshot_20261015_150453.png Redmine 7.0.2 Lennart Kindermann, 2026-10-15 15:25
Screenshot_20261015_150528.png (30.5 KB) Screenshot_20261015_150528.png Redmine 7.0.2 - Click on 2 Lennart Kindermann, 2026-10-15 15:25
Screenshot_20261015_150514.png (11.7 KB) Screenshot_20261015_150514.png Redmine 7.0.2 - Click on 3 or 4 Lennart Kindermann, 2026-10-15 15:25
Screenshot_20261015_150114.png (34.5 KB) Screenshot_20261015_150114.png Redmine 6.0.7 Lennart Kindermann, 2026-10-15 15:25

No data to display

Actions

Also available in: Atom PDF