Closed jeroen closed 1 year ago
One challenge here is case-sensitivity of package names. The usernames in r-universe are always normalized to lowercase (e.g. rOpenSci
becomes ropensci.r-universe.dev
) maybe we have to do the same for package names.
However R uses case sensitive package, names, so Rcpp
is not the same as rcpp
.
This is now deployed!
The permanent url should directly be short and only consist of the user and package name, similar to e.g.
github.io
.This way we can easily link to a package page, and also subsections within the page, as in https://github.com/r-universe-org/help/issues/178.
However this means that for different dashboard sections of the universe as a whole, we cannot use the url path anymore (as these now identify a package). We can do the same as github.com and use a
?tab=
query like https://github.com/jeroen?tab=repositoriesAnother potential problem is that certain paths are reserved for cranlike server or API:
But I think this is OK, we just can't support packages named
src
orbin
orpackages
which is probably fine, but we should check this cannot be abused in some way.Perhaps we can keep:
And move others under the package name:
nb: R manuals link to
../doc/
for articles so best is if bost are underpackage/doc/
.Overal a pretty complex change, but it will give much better permanent URLs. Also it will make it easier to replace the front-end with a new one in the future.