{"id":5619036,"date":"2014-12-29T15:51:38","date_gmt":"2014-12-29T15:51:38","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/absolute-vs-relative-link-trouble\/"},"modified":"2016-08-22T13:55:37","modified_gmt":"2016-08-22T13:55:37","slug":"absolute-vs-relative-link-trouble","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/absolute-vs-relative-link-trouble\/","title":{"rendered":"Absolute vs relative link trouble"},"content":{"rendered":"<p>I&#8217;m working on a WordPress theme and have an instance where in the top-left of the page, the site name is displayed and links back to the home page. I have that code as:<\/p>\n<p><code>&lt;a href=&quot;&lt;?php echo esc_url( home_url( &#039;\/&#039; ) ); ?&gt;&quot;&gt;&lt;?php bloginfo( &#039;name&#039; ); ?&gt;&lt;\/a&gt;<\/code><\/p>\n<p>Yet that&#8217;s outputting as a relative link, not an absolute one. I&#8217;ve even tried specifying the $scheme as http and that doesn&#8217;t seem to work.<\/p>\n","protected":false},"template":"","class_list":["post-5619036","topic","type-topic","status-closed","hentry","topic-tag-absolute","topic-tag-links","topic-tag-menu"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5619036","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5619036\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5619036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}