Description

If you create a new page with the help of the NewPage-macro, moin displays the "wrong" page: it displays the page the macro is from. Better: You would expect that the newly generated page ist shown.

Steps to reproduce

  1. start with this bug report page
  2. use the  [[NewPage(HomepageTemplate)]]  maco (see below) for creating a new page

  3. fill in the form, submit button

NOW:

  1. commit the edits, i.e. do create the new page

  2. BUG: Moin displays this BugReport again instead of the newly generated page

OR

  1. do not commit the edits, i.e. abort editing

  2. CORRECT behaviuor of the wiki: you get to an empty page which you may create now or later if you like.

Example

you have to create a new page to reproduce the bug:

Details

this wiki (moin 1.5.2) Tested within the WikiSandBox 5 minutes ago.

Workaround

I patched this in my wiki by changing action/newpage.py around line 83 to remove  'backto': self.referer  from the assignment to query.

Now, if you save, you stay on the new page; if you cancel, you get the "No such page, create one if you want" page.

-- DavidSinger 2006-09-22 16:55:04

Discussion

True, the backto is annoying most of the time. I don't know why we used it.

Yes, it does makes sense in you cancel or page creation fails. So the complete fix should be:

  1. If the page was created, show the new page
  2. If the page was not created, go back to the "backto" page.

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/NewPageMacroShowsWrongPage (last edited 2008-03-18 17:47:39 by p5B055566)