Link to work not displayed in HTML attribution code if no work title provided #297
Labels
💻 aspect: code
Concerns the software code in the repository
🛠 goal: fix
Bug fix
help wanted
Open to participation from the community
🟧 priority: high
Stalls work on the project or its dependents
🚦 status: awaiting triage
Has not been triaged & therefore, not ready for work
🏁 status: ready for work
Ready for work
Description
When the user provides a link to work, but does not provide a title, HTML attribution code in the 'MARK YOUR WORK' should add a link with
href
of the user-provided link, and text of 'This work'. Because there is no title, there should not be theproperty="dct:title"
attribute:<a rel="cc:attributionURL" href="http://www.example.com/picture.jpg">This work</a>
Instead, now no link is added even if the user provides a URL to their work:
This work
Reproduction
This work
Expectation
HTML code should have
<a rel="cc:attributionURL" href="http://www.example.com/picture.jpg">This work</a>
in it.Resolution
The text was updated successfully, but these errors were encountered: