Resolution of SWH-IDs fails with 404 if there is a trailing backslash in the origin field, followed by a semicolon, as in the following
https://archive.softwareheritage.org/swh:1:cnt:c60366bc03936eede6509b23307321faf1035e23;origin=https://github.com/sagemath/sage/;lines=473-537
while it works if we swap the parameters, as in the following
https://archive.softwareheritage.org/swh:1:cnt:c60366bc03936eede6509b23307321faf1035e23;lines=473-537;origin=https://github.com/sagemath/sage/