probe-lab / website

https://probelab.io
2 stars 3 forks source link

Make plot URLs more easily hackable #56

Closed BigLep closed 1 year ago

BigLep commented 1 year ago

If I am given a link to https://probelab.io/websites/blog.ipfs.tech/#website-snapshot-performance-gauge-blogipfstech-kubo , in order to quickly "hack" the URL for another site, I need to change both the path AND the anchor. I'd ideally only like to change the path.

-https://probelab.io/websites/blog.ipfs.tech/#website-snapshot-performance-gauge-blogipfstech-kubo
+https://probelab.io/websites/blog.ipfs.tech/#website-snapshot-performance-gauge-kubo

For example, if I want to go from blog.ipfs.tech link to docs.ipfs.tech I only have to change one thing that way:

-https://probelab.io/websites/blog.ipfs.tech/#website-snapshot-performance-gauge-kubo
+https://probelab.io/websites/docs.ipfs.tech/#website-snapshot-performance-gauge-kubo
yiannisbot commented 1 year ago

I suspect that the anchor is useful for the "download plot as a .png" feature, so that if you download several plots you know which one is for which site. I think this is more valuable to have from a UX perspective than the hack use-case :) But maybe I'm wrong, or maybe there are other reasons.

iand commented 1 year ago

@BigLep can you confirm you only see this as a problem in the website section, because the name of the website is duplicated?

BigLep commented 1 year ago

@iand : yeah, I only noticed in in the "website" section. Thanks for the fix!