This is a static dump of issues in the old "Flyspray" bugtracker for DokuWiki. Bugs and feature requests
are now tracked at the issue tracker at Github.

Closed
Implemented

FS#433 No warning when navigating backwards from an edit page

CSS, XHTML, JS, Browsers

2005-07-01

In FireFox:
* create a new page
* add some text
* hit the back button

You'll get no javascript warning but if you try to click forward to the page (thinking that text might still be there) you'll get the "The page you are trying to view contains POSTDATA and is expired..." type message.

Does the link create really need to be a post? Is there some javascript magic that could catch the back/forward navigation?

2006-10-03gb

This is not a bug of DokuWiki. And the "javascript magic" is rather a feature request.

2008-10-11foosel

Existing javascript magic (as in window.onPreUnload, see http://www.hunlock.com/blogs/Mastering_The_Back_Button_With_Javascript) does not distinguish between the back button or any other means for leaving the site (e.g. submitting the form). So I don't see any way of implementing this currently. Changing the link to GET instead of POST wouldn't change the fact that you'd still use your edited content, so I don't see any point in this either.

2008-10-12ChrisS

I have seen this done, e.g. Drupal forums & Gecko browsers (e.g. csscreator.com). I did change the buttons to GET in my dev install of DokuWiki, however there was no effect on the preservation of unsaved data in the text box.

2010-06-27foosel

We now use some more "javascript magic" ;) to capture back buttons and such stuff in the editor.