Posted by joachim on March 3, 2008 at 10:22pm
Jump to:
| Project: | Station |
| Version: | 5.x-2.x-dev |
| Component: | Programs |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
My users are entering URLs like 'www.myspace.com/username'.
This gets rendered as a local path, causing page not found errors on the site and a broken link.
Comments
#1
it's documented on the form
so it's not a bug making this a feature request ;)
#2
Ah.
I'm still running 1.2 because of all the patches I've made...
#3
actually i think this is correct the way it is. otherwise how else would you link to the site?
#4
I've seen a module that has link sanitization -- possibly the weblink module: it checks for something like 'www.domain.com' at the start of the link.
The way I envisaged this is that it's for off-site pages anyway -- isn't the program's homepage the actual current program node?
At any rate, users will continue to omit the http part -- there's nothing we can do about that.
#5
drewish -- take a look at the function link_validate_url in the CCK link module: http://drupal.org/project/link
I've used this module and its behaviour is exactly what I think we should do here too -- both 'www.example.com' and 'http://www.example.com' work as expected.
#6
i probably won't have time to work on this but it does seem like a reasonable feature request.