{"id":1282917,"date":"2017-05-12T06:41:46","date_gmt":"2017-05-12T13:41:46","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/rest-api-link-bug-option-to-disable\/"},"modified":"2017-05-12T07:02:57","modified_gmt":"2017-05-12T14:02:57","slug":"rest-api-link-bug-option-to-disable","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/rest-api-link-bug-option-to-disable\/","title":{"rendered":"REST api link bug &#8211; Option to disable"},"content":{"rendered":"<p>I&#8217;ve been running ADA compliance scans on a few of my sites and this keeps coming up.  They keep flagging a broken link in the &lt;head&gt;.  This one in particular.. &#8220;&lt;link rel=&#8221;htt:\/\/theeventscalendar.com&#8221; href=&#8221;https:\/\/www.hometrustbanking.com\/wp-json\/tribe\/events\/v1\/&#8221;&gt;&#8221;.  First off, there&#8217;s a typo in the &#8220;rel&#8221; attribute.  You have &#8220;htt:\/\/&#8221; which should be &#8220;http:\/\/&#8221;.  That&#8217;s not the link these scans are fussing about though.  <\/p>\n<p>The issue is with the href attribute and the url request returning a 404 status.  We&#8217;re not using the REST API on any of our sites so we end up with this link in the head of every page that returns a 404 json response.  <\/p>\n<p>Is there a hook we could drop in our functions file to dequeue this reference while this bug is addressed? Ideally we would have an option within the tribe settings to simply disable the rest api.  There&#8217;s no reason to load this resource if you\u2019re not utilizing the API.  Disabling it would also prevent returning a 404 response on every page.<\/p>\n<p>Thanks<\/p>\n","protected":false},"template":"","class_list":["post-1282917","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>REST api link bug - Option to disable -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/rest-api-link-bug-option-to-disable\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"REST api link bug - Option to disable -\" \/>\n<meta property=\"og:description\" content=\"I&#8217;ve been running ADA compliance scans on a few of my sites and this keeps coming up. They keep flagging a broken link in the &lt;head&gt;. This one in particular.. &#8220;&lt;link rel=&#8221;htt:\/\/theeventscalendar.com&#8221; href=&#8221;https:\/\/www.hometrustbanking.com\/wp-json\/tribe\/events\/v1\/&#8221;&gt;&#8221;. First off, there&#8217;s a typo in the &#8220;rel&#8221; attribute. You have &#8220;htt:\/\/&#8221; which should be &#8220;http:\/\/&#8221;. That&#8217;s not the link these scans [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/rest-api-link-bug-option-to-disable\/\" \/>\n<meta property=\"article:modified_time\" content=\"2017-05-12T14:02:57+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/rest-api-link-bug-option-to-disable\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/rest-api-link-bug-option-to-disable\/\",\"name\":\"REST api link bug - Option to disable -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-05-12T13:41:46+00:00\",\"dateModified\":\"2017-05-12T14:02:57+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/rest-api-link-bug-option-to-disable\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/rest-api-link-bug-option-to-disable\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/rest-api-link-bug-option-to-disable\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Ticket Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Event Tickets Plus\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"REST api link bug &#8211; Option to disable\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"REST api link bug - Option to disable -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/rest-api-link-bug-option-to-disable\/","og_locale":"en_US","og_type":"article","og_title":"REST api link bug - Option to disable -","og_description":"I&#8217;ve been running ADA compliance scans on a few of my sites and this keeps coming up. They keep flagging a broken link in the &lt;head&gt;. This one in particular.. &#8220;&lt;link rel=&#8221;htt:\/\/theeventscalendar.com&#8221; href=&#8221;https:\/\/www.hometrustbanking.com\/wp-json\/tribe\/events\/v1\/&#8221;&gt;&#8221;. First off, there&#8217;s a typo in the &#8220;rel&#8221; attribute. You have &#8220;htt:\/\/&#8221; which should be &#8220;http:\/\/&#8221;. That&#8217;s not the link these scans [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/rest-api-link-bug-option-to-disable\/","article_modified_time":"2017-05-12T14:02:57+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/rest-api-link-bug-option-to-disable\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/rest-api-link-bug-option-to-disable\/","name":"REST api link bug - Option to disable -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-05-12T13:41:46+00:00","dateModified":"2017-05-12T14:02:57+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/rest-api-link-bug-option-to-disable\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/rest-api-link-bug-option-to-disable\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/rest-api-link-bug-option-to-disable\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Ticket Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/"},{"@type":"ListItem","position":4,"name":"Event Tickets Plus","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/"},{"@type":"ListItem","position":5,"name":"REST api link bug &#8211; Option to disable"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1282917","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1282917\/revisions"}],"predecessor-version":[{"id":1282933,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1282917\/revisions\/1282933"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1282917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}