I want to do an extremely simple thing: have a menu item link to a web page. I go into to my global settings and see the menu contents; the link was originally pointing at an internal page, but I want to repoint it an external one, so I change its type to "link to the web", and put in my URL. But it's misrendered, appending my absolute URL to the current domain, so if my site is at:
https://www.example.co
and I set the link target to
https://elsewhere.example.co/login
the URL in the resulting link is rendered as
https://www.example.co/https://elsewhere.example.co/login
This is of course completely useless! This link goes to a 404 page, but retaining the URL, and since the menu appears on that page too, the link then offers to send me to
https://www.example.co/https:/elsewhere.example.co/https:/elsewhere.example.co/login
and I can keep going, adding a bit more to the URL with each click. Note the strange munging of //
into /
, and it stripping the trailing /login
path in those intermediate URLs on the 404 page. I am absolutely certain that the URL I'm providing is the link target is correct, and does not contain only a single /
– here it is in the UI:
It's also very odd because I saw in other posts that prismic doesn't support relative links?!
So why won't prismic link to a simple absolute URL?