WordPress Trac: Ticket #1405: Relative root template taghttps://core.trac.wordpress.org/ticket/1405
<p>
There are some cases where you might not need the full url as specified in the administration interface. For example if you want to use relative urls. As far as I can tell, the only way to get a realtive url (for example in a theme or plugin) which works from site to site, is to write a function which strips the '<a class="ext-link" href="http://"><span class="icon">​</span>http://</a>' and the domain name. A simple extension to the bloginfo() function with 'relativeroot' or something would be welcome.
</p>
<p>
The need for easily getting relative urls was shown to me in <a class="ext-link" href="http://www.jonas.rabbe.com/archives/2005/05/08/super-archives-plugin-for-wordpress/#comment-123"><span class="icon">​</span>a comment</a> on my blog, and <a class="ext-link" href="http://www.jonas.rabbe.com/archives/2005/05/08/super-archives-plugin-for-wordpress/#comment-124"><span class="icon">​</span>the solution</a>.
</p>
en-usWordPress Trachttps://core.trac.wordpress.org/chrome/site/your_project_logo.pnghttps://core.trac.wordpress.org/ticket/1405
Trac 1.0.1rob1nFri, 16 Feb 2007 15:19:28 GMTkeywords, version changedhttps://core.trac.wordpress.org/ticket/1405#comment:1
https://core.trac.wordpress.org/ticket/1405#comment:1
<ul>
<li><strong>keywords</strong>
<em>dev-feedback</em> <em>2nd-opinion</em> added; <em>relative</em> <em>url</em> <em>template</em> <em>tag</em> removed
</li>
<li><strong>version</strong>
changed from <em>1.5</em> to <em>2.1</em>
</li>
</ul>
TicketNazgulWed, 21 Feb 2007 21:01:30 GMTstatus, version changed; resolution set; keywords deletedhttps://core.trac.wordpress.org/ticket/1405#comment:2
https://core.trac.wordpress.org/ticket/1405#comment:2
<ul>
<li><strong>keywords</strong>
<em>dev-feedback</em> <em>2nd-opinion</em> removed
</li>
<li><strong>status</strong>
changed from <em>new</em> to <em>closed</em>
</li>
<li><strong>version</strong>
changed from <em>2.1</em> to <em>1.5</em>
</li>
<li><strong>resolution</strong>
set to <em>wontfix</em>
</li>
</ul>
<p>
No activity in almost 2 years.
</p>
<p>
Feel free to re-open if you have additional information.
</p>
Ticket