Page MenuHomeSoftware Heritage

Modify redirection on https://softwareheritage.org/swhid
Closed, MigratedEdits Locked

Description

The following link is redirecting to a blog post about the SWHID:

https://softwareheritage.org/swhid

We would like to use this link as a uri for a PropertyID with schema.org or codemeta.json.

It might be already used and can break things, even thought for persistence, it would be better to redirect to a persistent location/content.

Please advise @zack @rdicosmo

@anlambert can you check the logs to see if it is used?

Event Timeline

moranegg triaged this task as Normal priority.Sep 3 2020, 11:07 AM
moranegg created this task.

I've no specific advice here, as I wasn't aware that shorturl/SLUG existed, so I don't know where it might be used.
As a general comment, using such a "memorable" shorturl for a blog post doesn't seem like a good idea, as blog posts age pretty quickly.
So I'm in favor of removing it, but don't know how to evaluate the impact of doing so.
(For what is worth: I don't think that using it as a URI in the context you need it in is incompatible with having it being a valid URL pointing to something else, but I agree it would be weird, because some people will load it in their browsers for trying it out.)

anlambert claimed this task.

Done.

16:35 $ curl -I https://www.softwareheritage.org/swhid
HTTP/2 301 
date: Fri, 09 Dec 2022 15:53:24 GMT
server: Apache
x-powered-by: PHP/8.1.0
expires: Fri, 09 Dec 2022 16:53:24 GMT
cache-control: max-age=3600
x-redirect-by: redirection
location: https://docs.softwareheritage.org/devel/swh-model/persistent-identifiers.html
strict-transport-security: max-age=31536000
content-length: 0
content-type: text/html; charset=UTF-8
via: 1.1 varnish (Varnish/6.3), 1.1 varnish (Varnish/6.3)
x-cache-hits: 0
x-cache: MISS
age: 0