MellonScholarlyCommunication / css-suite

css-functionality
2 stars 0 forks source link

add a --base option to have a relative base url for all absolute urls #13

Open phochste opened 2 years ago

phochste commented 2 years ago

Normal use:

node bin/solid.js -c ~/Dev/Mellon/Scholix-client/etc/pod.conf list https://bellow2.ugent.be/test/

Add into ~/Dev/Mellon/Scholix-client/etc/pod.conf the key

"base" : "https://bellow2.ugent.be/test"

Now you can do:

node bin/solid.js -c ~/Dev/Mellon/Scholix-client/etc/pod.conf list /
Dexagod commented 2 years ago

I might be interested of doing this through environment variables more? so either SOLID_BASE_URL="https://mypod.org/ solid find base:/profile/card#me or by auto discovering a baseurl where a webId is given by discovering the storage uri coupled to the webId when a url is formatted as base:/profile/card. Although this second way may give more issues when more than 1 storage location is defined