Project

General

Profile

Actions

Defect #44164

open

Edit link is missing or incorrect in Wiki pages with the collapse macro

Added by Yasu Saku about 21 hours ago. Updated about 21 hours ago.

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

Description

When using a collapsible section in a Wiki page, the "Edit" link behavior is incorrect for sections inside the collapse macro.

Steps to reproduce

1. Create a Wiki page with multiple sections:

# Wiki
## Section A

collapsed section
{{collapse(
## Section B
)}}

## Section C

2. Save the page
3. Check the edit icons displayed on the right side of each section header
4. Expand "Section B"

Expected result

  • Each section should have its own "Edit" link
  • The edit link should target the correct section (e.g. edit?section=3 for Section B)
  • The edit link should be available when the section is expanded

Actual result

  • The edit link for Section B is missing
  • The edit link for Section C points to the wrong section (edit?section=3 instead of the expected edit?section=4)

Notes

This issue occurs when a section is wrapped inside a {{collapse(...)}} macro block.

It seems that sections inside the collapse macro are not correctly counted or indexed when generating section edit links.


Files

wiki-view-top.png (29 KB) wiki-view-top.png Yasu Saku, 2026-06-12 00:54
Actions #1

Updated by Yasu Saku about 21 hours ago

I noticed that the example of the collapse macro usage in the description was incorrect. Sorry for the confusion.
The correct markup is as follows:

# Wiki

## Section A

collapsed section
{{collapse()
## Section B
}}

## Section C
Actions

Also available in: Atom PDF