[drupal-devel] "Automatic relative URL" generation?

Gordon Heydon gordon at heydon.com.au
Mon May 9 03:14:58 UTC 2005


Hello,

Yes drupal does support this. It is actually the only method that is
used. If you have a look at the source you will see that all the url's
are node/1234 or q=node/1234 (depending on clean urls)

Gordon.

Matt England wrote:

> Can Drupal support "automatic relative URL" generation?
>
> By automatic relative URL" I mean something similar to MediaWiki's
> "[[]]" construct:
> http://meta.wikimedia.org/wiki/Help:Editing#Links.2C_URLs
>
>
> For example, rather then hard-coding this entire URL into the content
> of this message:
> http://drupal.org/node/21832
>
> ...I would prefer the Drupal new-post mechanism take this URL string
> and auto-convert it to something that just says "/node/21832" and will
> automatically change if the server is "assigned" a new primary "base"
> URL/domain address. This can also help (and is my biggest purpose)
> with local "caches" of Drupal content for "snapshot" reference, say as
> an included documentation set for a product that was developed using
> Drupal for said product's collaboration and/or documentation.
>
> Alternatively, maybe Drupal could allow the author to make a reference
> like [[node/21832]] to do the same as above (and still support
> pathauto aliases in the process).
>
> Does my explanation make any sense?
>
> Does this capability exist? Possibly via some module or patch?
>
> -Matt
>
>
> !DSPAM:427ed065310001605869249!
>




More information about the drupal-devel mailing list