umami icon indicating copy to clipboard operation
umami copied to clipboard

Pages links

Open Maxime-J opened this issue 3 years ago • 3 comments

It can be useful to have links next to pages, as there are for referrers.

Stumble into that for a website with a lot of pages, I wanted to see the content of top pages, but couldn't easily.

Can it be added to the enhancements list? Thank you !🙂

Maxime-J avatar Jun 30 '22 14:06 Maxime-J

I can submit a PR if wanted. I'm not so satisfied however.

By doing it, we have to choose a protocol for the link, so there's the easy way, link with https:// (what is done in Plausible) Or a better way IMO would be a https checkbox in website settings, but it seems a bit overkill only for that extra feature.

What's your take on that?

Maxime-J avatar Jul 08 '22 18:07 Maxime-J

I believe if you send the user to just the url the browser will figure out if it's https or not.

mikecao avatar Jul 09 '22 03:07 mikecao

href="domain.com" is treated as a relative path => UMAMI_URL/domain.com href="//domain.com" uses the protocol of the location where the link is: umami accessed via https => https://domain.com, otherwise http://domain.com

href="http://domain.com" is probably the safest, but it would need the website to handle correctly the redirections if it's preferable to use https. href="https://domain.com" assumes that the website is accessible through https, and it appears like a safe bet nowadays.

Maxime-J avatar Jul 11 '22 22:07 Maxime-J

Same as #800.

Maxime-J avatar Apr 04 '23 22:04 Maxime-J