Question
I have noticed that some core plugins (and the core) use
PUBURL to render the link to some
javascripts and css files.
The difference between is that
PUBURL renders the whole URL while
PUBURLPATH only renders the query path (URl without server or protocol).
Given that
PUBURL is not "rewrite-friendly" (fact that I found the hard wayt), in which cases it should be preferred over
PUBURLPATH?
Environment
--
RafaelAlvarez - 21 Apr 2008
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Whenever you are preparing text which is not controlled by a browser (which respects a
<base href="..."/>), a
%PUBURL% is necessary, e.g. when creating printable documents or mails. In all other cases, including CSS and JavaScript,
%PUBURLPATH% should be more appropriate.
--
HaraldJoerg - 21 Apr 2008