Page MenuHomeSoftware Heritage

Add clickable examples to SWHID docs
Closed, MigratedEdits Locked

Event Timeline

moranegg triaged this task as Normal priority.Dec 19 2019, 12:04 AM
moranegg created this task.
moranegg renamed this task from Add clickable examples to SWH-ID docs to Add clickable examples to SWHID docs.Sep 9 2020, 1:11 PM

Hello @moranegg, I am new here and I have made a draft for this task. I also noticed that the last example URL in Software Heritage Resolver subsection returns 404. But after truncating the URL a little bit, I got this - which is a valid object. What should I do?

Thank you

@KShivendu The URL is wrong, because the last %3B isn't escaped. The SWHID is swh:1:cnt:f10371aa7b8ccabca8479196d6cd640676fd4a04;origin=https://github.com/web-platform-tests/wpt;visit=swh:1:snp:b37d435721bbd450624165f334724e3585346499;anchor=swh:1:rev:259d0612af038d14f2cd889a14a3adb6c9e96d96;path=/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/support/x%3Burl=foo so the URL should be https://archive.softwareheritage.org/swh:1:cnt:f10371aa7b8ccabca8479196d6cd640676fd4a04;origin=https://github.com/web-platform-tests/wpt;visit=swh:1:snp:b37d435721bbd450624165f334724e3585346499;anchor=swh:1:rev:259d0612af038d14f2cd889a14a3adb6c9e96d96;path=/html/semantics/document-metadata/the-meta-element/pragma-directives/attr-meta-http-equiv-refresh/support/x%253Burl=foo/

Which also errors for reasons beyond me