[dokuwiki] New PR: Across workflow 'show - sectionedit - save/cancel' explicitly transmit header id to the server.

  • From: "LarsGit223" <wiki@xxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sat, 6 May 2017 10:36:07 +0200 (CEST)

Hi,

LarsGit223 opened a new pull request at 
https://github.com/splitbrain/dokuwiki/pull/1966:

So the server can always redirect to the correct section even if headings have 
the same name. Fixes #1364.

The workflow of the change is as follows:
- on rendering, get header id and put it as hidden field ```hid``` into the 
section edit button(s)
- the user clicks an section edit button, the ```hid``` field is transmitted to 
the server
- the server again sends the hidden field ```hid``` back to the client on 
rendering the editor form
- the field is transmitted back to the server when the user clicks on 
```Save``` or ```Cancel```
- the server receives the field and can redirect to the correct section

Remarks:
Even if the title of two headings might be the same, their header id (```<h 
id="...">```) will always be different.

Please help us to review this pull request, so new contributors get feedback in 
a timely manner.

0b2a4880-3237-11e7-96c8-b5c40f27f471


-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts:

  • » [dokuwiki] New PR: Across workflow 'show - sectionedit - save/cancel' explicitly transmit header id to the server. - LarsGit223