Fix permalinks for CRAN repositories
The permalink generated for a given release from the CRAN repository does not work ('CRAN' Origin type
).
For example, it is the case of the permalink generated on the following page:
Permalinks generated:
- https://archive.softwareheritage.org/swh:1:dir:aacbdfd9d1b45e149f6aa66d91973a4e76b3e39f;origin=https://cran.r-project.org/package%25253DairGRteaching;visit=swh:1:snp:ed7a48f6757e7cbdb59bfebbbb9eec516ccd769b;anchor=swh:1:rel:ba15b1b00733887709ff37c99460cdaf6773e3dc
- https://archive.softwareheritage.org/swh:1:dir:9eb0cbf5c1c8be7ca5085ca965d39f24dd710fd1;origin=https://cran.r-project.org/package%25253DairGRteaching;visit=swh:1:snp:ed7a48f6757e7cbdb59bfebbbb9eec516ccd769b;anchor=swh:1:rel:c18ae069cee73c61a9e0f046d9964b2ec8d08239;path=/airGRteaching/
It works if:
-
package%25253DairGRteaching
, is replaced by:package%3DairGRteaching
(for both 1st and 2nd example links) -
;path=/airGRteaching/
is removed (at the end of the 2nd example link)
Edited by Olivier Delaigue