Is there a way to create an absolute link without a protocol without using //
?
For example, From the website https://example.com
have a link that leads to example2.com.
//
does not work in this case because the first link has the https
protocol while the second does not.
Asked
Active
Viewed 26 times
0

UnsignedByte
- 849
- 10
- 29
-
Have a look at [\[ this \]](https://stackoverflow.com/a/179717/1620779) answer. – sjsam Dec 01 '17 at 02:47
-
no, because example2.com does not have a protocol so it wouldn't work – UnsignedByte Dec 01 '17 at 02:47
-
You maybe looking for [this](https://stackoverflow.com/questions/4978235/absolute-urls-omitting-the-protocol-scheme-in-order-to-preserve-the-one-of-the) – Raul Sauco Dec 01 '17 at 02:47
-
As I said, // is protocol relative, which I do not want – UnsignedByte Dec 01 '17 at 02:48