Forum OpenACS Q&A: ns_returnredirect "" problem...

Collapse
Posted by David Kuczek on
There is places in oacs 3.2.5 where a ns_returnredirect "" shall
redirect to index.tcl...

In my case it doesn't redirect to index.tcl but to stays on the page
where ns_returnredirect "" has been called and brings up the following
message:

Redirection

The requested URL has moved here.

Any suggestions???

Collapse
Posted by Jonathan Ellis on
I know it does this if the page author goofed and has a ReturnHeaders before the returnredirect.  Is that the case?
Collapse
Posted by Tom Jackson on

In HTML you reference the index of a directory you are in with ".", maybe try:

ns_returnredirect "."
Collapse
Posted by David Kuczek on
Jonathan, no ReturnHeaders there...

Tom, your returnredirect "." works!!

Thanks