Project

General

Profile

Actions

Defect #11133

closed

Wiki-page section edit link can point to incorrect section

Added by Maarten Hoogveld over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Category:
Wiki
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

When headers in a wiki page are preceded by a line with one space (instead of an empty line), the section edit links edit the wrong section of the section of the page.
This is present in versions 1.4.1 and 2.0.2 of Redmine.

With the example content, four h1. sections are created.
The links point to the correct url (e.g. link to edit chapter 3 point to ?section=3)
The content shown in the edit page however, does not correctly respond to the section.
Clicking the edit link for Chapter 2 will edit Chapter 2 and 3.
Editing Chapter 3 will edit Chapter 4.

Headers may have to be separated by empty lines, but if an accidental space is present on such a line, it is not at all clear to the user why section editing does not work correctly.

To reproduce:
  • Create an wiki page with the content provided in the attachment
    (Note the added space above the line 'h1. Chapter 3')
  • Save page
  • Click on the several section-edit icons

Files

wikipage-content.txt (125 Bytes) wikipage-content.txt Content of wiki page to reproduce this issue Maarten Hoogveld, 2012-06-11 12:56

Related issues

Has duplicate Redmine - Defect #11189: "Edit this section" sometimes does't workClosed

Actions
Actions

Also available in: Atom PDF