Actions
Defect #44623
openWiki include() macro adds faulty "Edit this section"-links
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
No data to display
Actions