Semanticmediawiki: Bad value for "rel" attribute in link tag

Created on 5 Dec 2017  路  5Comments  路  Source: SemanticMediaWiki/SemanticMediaWiki

Setup and configuration

  • SMW version: 2.5.4
  • MW version: 1.29.1
  • PHP version: 7.0.22
  • DB system: MySQL 5.7.20-0ubuntu0.16.04.1

Issue

SMW causes a link tag with a bad value for the "rel" attribute to be added to HEAD:

<link rel="ExportRDF" type="application/rdf+xml" title="Main Page" href="/wiki/index.php?title=Special:ExportRDF/Main_Page&amp;xmlmime=rdf"/>

Steps to reproduce

Navigate to: Nu Html Checker
The page concerned is at www.irhb.org.

I know that the latest version of SMW is now 2.5.5, but the release notes do not say this issue has been fixed.

As always, thanks for all your efforts.

bug

Most helpful comment

Thank you for reporting the issue. So what would the expected value be? Probably "alternate" in all cases.

All 5 comments

Thank you for reporting the issue. So what would the expected value be? Probably "alternate" in all cases.

I am afraid I can't answer your question. Does there have to be a rel attribute in this case? This document claims to be "the official rel registry": Microformats: Existing rel Values. Is it of any use?

I am afraid I can't answer your question.

No worries. This question was directed to all parties interested in this bug. Thanks for the additional link.

<link rel="ExportRDF" type="application/rdf+xml" title="Main Page" href="/wiki/index.php?title=Special:ExportRDF/Main_Page&amp;xmlmime=rdf"/>

See [0].

[0] https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/src/MediaWiki/Hooks/BeforePageDisplay.php#L81

On 12/6/17, Henrik Thiil Nielsen notifications@github.com wrote:

Setup and configuration

  • SMW version: 2.5.4
  • MW version: 1.29.1
  • PHP version: 7.0.22
  • DB system: MySQL 5.7.20-0ubuntu0.16.04.1

Issue

SMW causes a link tag with a bad value for the "rel" attribute to be added
to HEAD:

<link rel="ExportRDF" type="application/rdf+xml" title="Main Page" href="/wiki/index.php?title=Special:ExportRDF/Main_Page&amp;xmlmime=rdf"/>

Steps to reproduce

Navigate to:
The page concerned is at .

I know that the latest version of SMW is now 2.5.5, but the release notes do
not say this issue has been fixed.

As always, thanks for all your efforts.

--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/2852

Back ported with 2db4d30a8c51dd988df1c8bc5c71a8f70e056949 to be shipped with 2.5.6

Was this page helpful?
0 / 5 - 0 ratings