Protocol relative URL gets changed into a domain relative URL

Created on 29 August 2014, almost 10 years ago
Updated 2 May 2024, about 2 months ago

Hi,
I have site on http and https. I want to redirect to other hostname, but keep https if I am at https connection and keep http I am at http.

So Redirect needs to support absolute url without protocol (e.g. //example.com/page.html) and send to browser this url, so he can decide what protocol to use. Now when I setup redirect from local path to url without protocol it thinks it is local path (it redirects to https://this.site/example.com/page.html).

🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇨🇿Czech Republic Honza Pobořil

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024