Forum OpenACS Development: Xowiki 0.3x and return_url

Collapse
Posted by Dave Bauer on
On xowiki < 0.31 the return_url for a new page was the page itself, so after adding a new page you were redirected to that page.

This changed in Xowiki 0.31 (i think). Editing a page returns you back to that same page. Adding a new page always goes to the wiki index page.

I made the following patch to make it work the same for edit and new page.

Index: xowiki-www-procs.tcl
===================================================================
RCS file: /cvsroot/openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl,v
retrieving revision 1.8
diff -r1.8 xowiki-www-procs.tcl
212,213c212,213
<     set myurl [expr {$new ? [$package_id url] :
<                    [Page pretty_link -package_id $package_id [my form_parameter name]]}]
---
set myurl [Page pretty_link -package_id $package_id [my form_parameter name]]
236c236

I did not notice any problems with this change, but I could be wrong!

Collapse
Posted by Gustaf Neumann on
the change makes sense, i have added something like this in my local copy. If nothing bad happens, i will commit today the new version, things a stabilizing again.

-gustaf