[development] links best practices (was Re: internal link filter ...)

Ray Zimmerman rz10 at cornell.edu
Sat Aug 5 02:45:59 UTC 2006


On Aug 4, 2006, at 7:30 PM, Morbus Iff wrote:
>> In fact, I have a feeling that we should put an effort behind  
>> foo:// patterns as defacto standard for Drupal over [foo:] patterns.
>
> Actually, for what it's worth, we should NOT use internal:// or  
> *any* foo:// patterns. Doing so, even internally, is a creation of  
> what appears to be a new protocol, even though it's actually not.  
> We should instead create a new URN, such as internal:node/4. Apple,  
> in the past two years or so, I think, got flamed for using  
> webcal:// for it's iCal application, where webcal was merely a file  
> format, and not a protocol.

Aww man ... that's exactly what I was concerned about when I asked  
last week if there was "any standard or convention for choosing the  
label we use for such a URL". The only docs I found in some quick  
googling were way out of date, so I wasn't sure what the current  
standards permit.

I guess for a filter, maybe I'd better limit the regex to searching  
for internal: after an

     href="

or a

     src="

With internal:// I felt it was relatively safe to search for it  
anywhere.

     Ray


More information about the development mailing list