epimorphics / elda

Epimorphics implementation of the Linked Data API
Other
53 stars 27 forks source link

Velocity Renderer: rendering of links to resources with URL of the form .../- #197

Closed bwmcbride closed 2 years ago

bwmcbride commented 7 years ago

Property values that are resources with URLs of the form http://example.com/foo/bar/- are rendered on the page as an empty <a> element.

This is a problem in the EPO site where we have resources with URLs of that form.

The render should put some text inside the anchor element, e.g.

<a href='...'>-</a>.
ijdickinson commented 7 years ago

In discussion with @bwmcbride, my proposal is that we use the previous path segment for URIs that end with a hyphen character:

<a href='http://example.com/foo/bar/-'>bar/-</a>
ijdickinson commented 7 years ago

@bwmcbride I've committed a fix for this in the issue-197 branch if you can please try it.

I would also note that:

ijdickinson commented 2 years ago

Closing as obsolete