Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

auto redirect from mozilla view adv editor not working

Quote Reply
auto redirect from mozilla view adv editor not working
Hi there,

After posting via mozilla and the advanced editor I am not automatically redirected to the post. True for my install and for this forum.

bob


.:SEAWEAD:.
Quote Reply
Re: [baidarkabob] auto redirect from mozilla view adv editor not working In reply to
test


.:SEAWEAD:.
Quote Reply
Re: [baidarkabob] auto redirect from mozilla view adv editor not working In reply to
yep, just tested again. I am using firebird .7

bob


.:SEAWEAD:.
Quote Reply
Re: [baidarkabob] auto redirect from mozilla view adv editor not working In reply to
I'm seeing this too. It seems that mozilla/firefox doesn't like the trailing ampersand.
gforum generates:
<meta http-equiv="refresh" content="5;url=gforum.cgi?do=forum_view&forum=22&">

and mozilla would rather see:
<meta http-equiv="refresh" content="5;url=gforum.cgi?do=forum_view&forum=22">

I'm not sure what's html spec. Can it be fixed?

Last edited by:

jaga: Jun 18, 2004, 10:24 PM
Quote Reply
Re: [jaga] auto redirect from mozilla view adv editor not working In reply to
I tried putting this code in GForum.pm but the ampersand is still on the query string, will have to figure out the best place to put it.
Code:
Find:
$return = join "&", @return;
Just after, put this:

# Mike Challis added next line to fix Mozilla Firefox will not redirect after post bug
$return =~ s/&$//;

Any ideas?

----------
Michael J. Challis - CRUZN8R - PT Cruiser Club - http://www.ptcruiserclub.org

http://www.ptcruiserclub.org/forum
Quote Reply
Re: [CRUZN8R] auto redirect from mozilla view adv editor not working In reply to
I was looking in the wrong place, no need to edit GForum.pm the extra ampersand was coming from the template post_post.html
Code:
Change this:
<meta http-equiv="refresh" content="3; url=gforum.cgi?do=forum_view&forum=<%forum_id%>&<%hidden_query%>">
to this:
<%if hidden_query%>

<meta http-equiv="refresh" content="3;
url=gforum.cgi?do=forum_view&forum=<%forum_id%>&<%hidden_query%>">

<%else%>

<meta http-equiv="refresh" content="3; url=gforum.cgi?do=forum_view&forum=<%forum_id%>">

<%endif%>

That takes care of the extra ampersand, but ...
Firefox still does not redirect from the meta refresh url redirect tag, it ignores it.

----------
Michael J. Challis - CRUZN8R - PT Cruiser Club - http://www.ptcruiserclub.org

http://www.ptcruiserclub.org/forum