twitter hash url has trailing /

thomasmuirhead - July 17, 2009 - 11:21
Project:Activity Stream
Version:6.x-1.0-rc2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

On twitter activity stream items, the links to #xxxxx links through with a trailing /.

On 6.x-1.0-rc2 it currently links to hasthags.org rather than twitter search.
On 6.x-2.dev it links to twitter search but carries over a trailing / which renders the search useless.

If using rc2:
Go into activitystream_twitter.module and change the line:

to

If using dev version
Go into activitystream_twitter.module and change the line:

to

now all #xxx links in twitter items link to a twitter search for that #xxx.

hope that's helpful for some people.

#1

thomasmuirhead - July 17, 2009 - 11:25

I can't seem to edit so I'll try that again:

On twitter activity stream items, the links to #xxxxx links through with a trailing /.

On 6.x-1.0-rc2 it currently links to hasthags.org rather than twitter search.
On 6.x-2.dev it links to twitter search but carries over a trailing / which renders the search useless.

If using rc2:
Go into activitystream_twitter.module and change the link:
<a href="http://hashtags.org/tag/\\1/">
to
<a href="http://search.twitter.com/search?q=%23\\1">

If using dev version
Go into activitystream_twitter.module and change the link:
<a href="http://search.twitter.com/search?q=%23\\1/">
to
<a href="http://search.twitter.com/search?q=%23\\1">

now all #xxx links in twitter items link to a twitter search for that #xxx.

hope that's helpful for some people.

#2

akalsey - November 9, 2009 - 22:06
Status:active» fixed

Fixed in CVS rev 1.2.2.6

#3

System Message - November 23, 2009 - 22:10
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.