Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Turning off the redirect?

Quote Reply
Turning off the redirect?
Is there any easy way to do that? We link to a lot of documents on our site and our folks are a lot more used to typing in relative paths than entire URLs.

Thanks!
Quote Reply
Re: [agaffin] Turning off the redirect? In reply to
What redirect is it that you are trying to disable? The redirects in Gossamer Forum happen in only two places - once when logging in, and a second time when posting, but only if you have your profile set up to take you directly back to the post or forum.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Turning off the redirect? In reply to
When you embed a URL in a posting (like this, the URL is passed into gforum.cgi. Can that behavior be turned off?
Quote Reply
Re: [agaffin] Turning off the redirect? In reply to
It is set up like that for security reasons - without it someone with a bit of CGI programming knowledge could login using your account and change your password, essentially stealing your account. For that reason, posts do not link directly; the behaviour is coded into the programme and cannot easily be disabled.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Turning off the redirect? In reply to
Couldn't this be modified in such a way that users authenticated with a cookie and guest are not redirected? Only users authenticated by a session id in the URL should be redirected.

It would be great to have this as a admin configurable option.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Turning off the redirect? In reply to
That feature was requested here:

http://www.gossamer-threads.com/...i?post=186910#186910

As part of this thread:

http://www.gossamer-threads.com/...i?post=186061#186061

- wil
Quote Reply
Re: [Wil] Turning off the redirect? In reply to
Didn't know that.

But you seem to have the same good ideas as I do Cool

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Turning off the redirect? In reply to
I don't know if this was ever added to GT's scratch pad. Unfortunately, they don't make that information public :-\

- wil
Quote Reply
Re: [Wil] Turning off the redirect? In reply to
Alright, I've hacked up... errrr, I mean added to the GForum::Convert code sufficiently to make this work for 1.1.6 Pirate

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Turning off the redirect? In reply to
At 4 in the morning? Jeepers!

- wil
Quote Reply
Re: [Jagerman] Turning off the redirect? In reply to
Hmm 4am?...you can't be in work tommorrow surely :)

I just took a look in Convert.pm...not sure how you did it but you could use an if/else and make it a config option?
Code:
if ($CFG->{redirect_urls}) {
$eurl =~ s/&/&/g;
$eurl =~ s/;/&/g;
$eurl = "http://$eurl" unless $eurl =~ m{^\w+:};
$eurl = GT::CGI::escape($eurl);
qq|<a href="gforum.cgi?url=$eurl" target="_blank">$pre$url$post</a>|
}
else {
qq|<a href="$eurl" target="_blank">$pre$url$post</a>|
}

Or is it not as easy as that?

Last edited by:

Paul: Jun 6, 2002, 3:59 AM
Quote Reply
Re: [Wil] Turning off the redirect? In reply to
What can I say? I couldn't sleep Unsure

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Paul] Turning off the redirect? In reply to
In Reply To:
Hmm 4am?...you can't be in work tommorrow surely :)


It already is tomorrow Wink

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Turning off the redirect? In reply to
Well you know what I mean Cool