Urls are not clickable ie converted to <a href="">

Bug #656191 reported by David Rubin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LoCo Team Portal
Fix Released
Wishlist
Adnane Belmadiaf

Bug Description

Pages like http://loco.ubuntu.com/events/team/374/detail/ that contain urls it is very hard (in the web2.0 world) to explain why users can't click on the urls.

Seems like a simple fix would be do do
import re
myString = "This is my tweet check it out http://tinyurl.com/blah"
r = re.compile(r"(http://[^ ]+)")
print r.sub(r'<a href="\1">\1</a>', myString)

From http://stackoverflow.com/questions/720113/find-hyperlinks-in-text-using-python-twitter-related
Just before displaying the text (after it has been escaped for other injections)

Seems easy to implement and only a minor view change so we can remove it at any point.

Related branches

Adnane Belmadiaf (daker)
Changed in loco-directory:
status: New → Triaged
importance: Undecided → Wishlist
Adnane Belmadiaf (daker)
Changed in loco-directory:
assignee: nobody → Adnane Belmadiaf (adnane002)
Revision history for this message
David Rubin (drubin) wrote :

That fix is much better then my suggestion.

thanks

Revision history for this message
Adnane Belmadiaf (daker) wrote :

You are welcome!!

Changed in loco-directory:
status: Triaged → In Progress
Changed in loco-directory:
milestone: none → 0.2.20
status: In Progress → Fix Committed
Changed in loco-directory:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.