Forum Moderators: open

Message Too Old, No Replies

WW Jump-to links

#msg25 (no more?)

         

Birdman

12:54 pm on Mar 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello all,

I have noticed lately that we can't use the hash and message number to place a link to a particular post in a thread. I'm pretty sure it used to work.

When did this change and was there an issue that cause it to be changed?

Thanx

Nick_W

12:58 pm on Mar 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Glad it's not just me then!

Nick

andreasfriedrich

1:19 pm on Mar 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The anchors are still there:
<a name="msg1">

Itīs just that the hash gets urlencode [php.net]d to %23. If you replace that with the hash everything will work just fine.

It seems that Brett changed something in the redirect script.

Andreas

Birdman

1:30 pm on Mar 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, I looked at the code before I posted this and saw the anchor still there. Andreas, do you mean replacing it and using the address bar? I liked being able to use the jump links, especially for threads with long posts.

vitaplease

1:33 pm on Mar 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yep noticed the same problem here:

[webmasterworld.com...]

any way to prevent the redirect?

or does Brett not want us to go direct?

andreasfriedrich

1:43 pm on Mar 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




>>Andreas, do you mean replacing it and using the address
>>bar?

Yes Birdman, you would need to do that by hand in the address bar. Or you could add a piece to the proxy server that replaces %23 in Location header fields with the hash. But that would only work for yourself.

Andreas

Birdman

1:47 pm on Mar 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>Or you could add a piece to the proxy server

Great idea, thanks!

Added: Would that be in custom_replace.txt?

andreasfriedrich

2:33 pm on Mar 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No, since the patterns contained in custom_replace.txt are applied to the body of a HTTP request only.

You would need to modify win_proxy directly. Look for the following two lines at the body of the script:


my $response = &fetch_request($r);
$c->send_response($response);

The first line will request the response from the remote server and do its magic on the content. The second line will pass the response we got from the remote server back to the browser. Between those two lines you need to add the code that modifies the Location response header.


my $loc = $response->header('Location');
$response->header('Location', $loc) if $loc =~ s/%23/#/;

Andreas

Birdman

2:42 pm on Mar 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ok, works perfectly. Thanks Andreas.