How to create cross-platform Internet shortcut files
Is there any way to create Internet shortcut files that will work with all operating systems (including Mac, Windows, and Linux)? I often switch between Windows and Linux, and I haven't yet found a way to create an internet shortcut file (on the desktop or in a local folder) that is compatible with all operating systems.
shortcuts
add a comment |
Is there any way to create Internet shortcut files that will work with all operating systems (including Mac, Windows, and Linux)? I often switch between Windows and Linux, and I haven't yet found a way to create an internet shortcut file (on the desktop or in a local folder) that is compatible with all operating systems.
shortcuts
2018 update: macs can handle .url files, though they default to Safari. Linux and Android do not handle .url. chrome.google.com/webstore/detail/webcuts/… can make xplatform links for you.
– Ray Foss
Dec 11 '17 at 18:34
add a comment |
Is there any way to create Internet shortcut files that will work with all operating systems (including Mac, Windows, and Linux)? I often switch between Windows and Linux, and I haven't yet found a way to create an internet shortcut file (on the desktop or in a local folder) that is compatible with all operating systems.
shortcuts
Is there any way to create Internet shortcut files that will work with all operating systems (including Mac, Windows, and Linux)? I often switch between Windows and Linux, and I haven't yet found a way to create an internet shortcut file (on the desktop or in a local folder) that is compatible with all operating systems.
shortcuts
shortcuts
edited Oct 13 '13 at 0:05
Anderson Green
asked Jan 18 '13 at 7:11
Anderson GreenAnderson Green
2,62983667
2,62983667
2018 update: macs can handle .url files, though they default to Safari. Linux and Android do not handle .url. chrome.google.com/webstore/detail/webcuts/… can make xplatform links for you.
– Ray Foss
Dec 11 '17 at 18:34
add a comment |
2018 update: macs can handle .url files, though they default to Safari. Linux and Android do not handle .url. chrome.google.com/webstore/detail/webcuts/… can make xplatform links for you.
– Ray Foss
Dec 11 '17 at 18:34
2018 update: macs can handle .url files, though they default to Safari. Linux and Android do not handle .url. chrome.google.com/webstore/detail/webcuts/… can make xplatform links for you.
– Ray Foss
Dec 11 '17 at 18:34
2018 update: macs can handle .url files, though they default to Safari. Linux and Android do not handle .url. chrome.google.com/webstore/detail/webcuts/… can make xplatform links for you.
– Ray Foss
Dec 11 '17 at 18:34
add a comment |
3 Answers
3
active
oldest
votes
I found a reasonable cross-platform solution. This HTML document could be used as a shortcut to stackoverflow.com, and it would immediately redirect to that site when opened from the desktop:
<html>
<body>
<script type="text/javascript">
window.location.href = "http://stackoverflow.com"; //change this to the URL
//you want to redirect to
</script>
</body>
</html>
1
this is such a fantastically simple solution... thank you
– Nick Franceschina
Jan 29 '13 at 0:27
16
Why not use<meta http-equiv="refresh" content="0; url=http://example.com/">
in the<head>
instead of relying on javascript?
– Evan Mattson
Sep 11 '14 at 0:23
add a comment |
Credit to Evan Mattson from the comments.
From W3C, Technique H76: Using meta refresh to create an instant client-side redirect:
The objective of this technique is to enable redirects on the client side without confusing the user. Redirects are preferably implemented on the server side (see SVR1: Implementing automatic redirects on the server side instead of on the client side (SERVER) ), but authors do not always have control over server-side technologies.
Example from the link above:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>The Tudors</title>
<meta http-equiv="refresh" content="0;URL='http://thetudors.example.com/'" />
</head>
<body>
<p>This page has moved to a <a href="http://thetudors.example.com/">
theTudors.example.com</a>.</p>
</body>
</html>
Basically, a refresh is done after zero seconds (immediately) to the specified URL, before the page content is loaded, and without JavaScript.
add a comment |
You can define a file named as following - MyInternetShortcut.url
.
It's content should be:
[InternetShortcut]
URL=https://my.amazingsite.com/
This works on Windows and macOS.
Maybe your Linux. Opens in text editor on my Linux Mint 17.3 Mate system.
– kreemoweet
Feb 10 at 19:10
I have Linux Mint 18.3 and it doesn't work as well. I guess my memory tricked me. It does work on macOS and Windows. I will update the answer. Thank You.
– Royi
Feb 10 at 20:58
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f538089%2fhow-to-create-cross-platform-internet-shortcut-files%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
I found a reasonable cross-platform solution. This HTML document could be used as a shortcut to stackoverflow.com, and it would immediately redirect to that site when opened from the desktop:
<html>
<body>
<script type="text/javascript">
window.location.href = "http://stackoverflow.com"; //change this to the URL
//you want to redirect to
</script>
</body>
</html>
1
this is such a fantastically simple solution... thank you
– Nick Franceschina
Jan 29 '13 at 0:27
16
Why not use<meta http-equiv="refresh" content="0; url=http://example.com/">
in the<head>
instead of relying on javascript?
– Evan Mattson
Sep 11 '14 at 0:23
add a comment |
I found a reasonable cross-platform solution. This HTML document could be used as a shortcut to stackoverflow.com, and it would immediately redirect to that site when opened from the desktop:
<html>
<body>
<script type="text/javascript">
window.location.href = "http://stackoverflow.com"; //change this to the URL
//you want to redirect to
</script>
</body>
</html>
1
this is such a fantastically simple solution... thank you
– Nick Franceschina
Jan 29 '13 at 0:27
16
Why not use<meta http-equiv="refresh" content="0; url=http://example.com/">
in the<head>
instead of relying on javascript?
– Evan Mattson
Sep 11 '14 at 0:23
add a comment |
I found a reasonable cross-platform solution. This HTML document could be used as a shortcut to stackoverflow.com, and it would immediately redirect to that site when opened from the desktop:
<html>
<body>
<script type="text/javascript">
window.location.href = "http://stackoverflow.com"; //change this to the URL
//you want to redirect to
</script>
</body>
</html>
I found a reasonable cross-platform solution. This HTML document could be used as a shortcut to stackoverflow.com, and it would immediately redirect to that site when opened from the desktop:
<html>
<body>
<script type="text/javascript">
window.location.href = "http://stackoverflow.com"; //change this to the URL
//you want to redirect to
</script>
</body>
</html>
edited Jan 18 '13 at 17:57
answered Jan 18 '13 at 7:33
Anderson GreenAnderson Green
2,62983667
2,62983667
1
this is such a fantastically simple solution... thank you
– Nick Franceschina
Jan 29 '13 at 0:27
16
Why not use<meta http-equiv="refresh" content="0; url=http://example.com/">
in the<head>
instead of relying on javascript?
– Evan Mattson
Sep 11 '14 at 0:23
add a comment |
1
this is such a fantastically simple solution... thank you
– Nick Franceschina
Jan 29 '13 at 0:27
16
Why not use<meta http-equiv="refresh" content="0; url=http://example.com/">
in the<head>
instead of relying on javascript?
– Evan Mattson
Sep 11 '14 at 0:23
1
1
this is such a fantastically simple solution... thank you
– Nick Franceschina
Jan 29 '13 at 0:27
this is such a fantastically simple solution... thank you
– Nick Franceschina
Jan 29 '13 at 0:27
16
16
Why not use
<meta http-equiv="refresh" content="0; url=http://example.com/">
in the <head>
instead of relying on javascript?– Evan Mattson
Sep 11 '14 at 0:23
Why not use
<meta http-equiv="refresh" content="0; url=http://example.com/">
in the <head>
instead of relying on javascript?– Evan Mattson
Sep 11 '14 at 0:23
add a comment |
Credit to Evan Mattson from the comments.
From W3C, Technique H76: Using meta refresh to create an instant client-side redirect:
The objective of this technique is to enable redirects on the client side without confusing the user. Redirects are preferably implemented on the server side (see SVR1: Implementing automatic redirects on the server side instead of on the client side (SERVER) ), but authors do not always have control over server-side technologies.
Example from the link above:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>The Tudors</title>
<meta http-equiv="refresh" content="0;URL='http://thetudors.example.com/'" />
</head>
<body>
<p>This page has moved to a <a href="http://thetudors.example.com/">
theTudors.example.com</a>.</p>
</body>
</html>
Basically, a refresh is done after zero seconds (immediately) to the specified URL, before the page content is loaded, and without JavaScript.
add a comment |
Credit to Evan Mattson from the comments.
From W3C, Technique H76: Using meta refresh to create an instant client-side redirect:
The objective of this technique is to enable redirects on the client side without confusing the user. Redirects are preferably implemented on the server side (see SVR1: Implementing automatic redirects on the server side instead of on the client side (SERVER) ), but authors do not always have control over server-side technologies.
Example from the link above:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>The Tudors</title>
<meta http-equiv="refresh" content="0;URL='http://thetudors.example.com/'" />
</head>
<body>
<p>This page has moved to a <a href="http://thetudors.example.com/">
theTudors.example.com</a>.</p>
</body>
</html>
Basically, a refresh is done after zero seconds (immediately) to the specified URL, before the page content is loaded, and without JavaScript.
add a comment |
Credit to Evan Mattson from the comments.
From W3C, Technique H76: Using meta refresh to create an instant client-side redirect:
The objective of this technique is to enable redirects on the client side without confusing the user. Redirects are preferably implemented on the server side (see SVR1: Implementing automatic redirects on the server side instead of on the client side (SERVER) ), but authors do not always have control over server-side technologies.
Example from the link above:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>The Tudors</title>
<meta http-equiv="refresh" content="0;URL='http://thetudors.example.com/'" />
</head>
<body>
<p>This page has moved to a <a href="http://thetudors.example.com/">
theTudors.example.com</a>.</p>
</body>
</html>
Basically, a refresh is done after zero seconds (immediately) to the specified URL, before the page content is loaded, and without JavaScript.
Credit to Evan Mattson from the comments.
From W3C, Technique H76: Using meta refresh to create an instant client-side redirect:
The objective of this technique is to enable redirects on the client side without confusing the user. Redirects are preferably implemented on the server side (see SVR1: Implementing automatic redirects on the server side instead of on the client side (SERVER) ), but authors do not always have control over server-side technologies.
Example from the link above:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>The Tudors</title>
<meta http-equiv="refresh" content="0;URL='http://thetudors.example.com/'" />
</head>
<body>
<p>This page has moved to a <a href="http://thetudors.example.com/">
theTudors.example.com</a>.</p>
</body>
</html>
Basically, a refresh is done after zero seconds (immediately) to the specified URL, before the page content is loaded, and without JavaScript.
answered Jan 25 '16 at 18:03
tavnabtavnab
22135
22135
add a comment |
add a comment |
You can define a file named as following - MyInternetShortcut.url
.
It's content should be:
[InternetShortcut]
URL=https://my.amazingsite.com/
This works on Windows and macOS.
Maybe your Linux. Opens in text editor on my Linux Mint 17.3 Mate system.
– kreemoweet
Feb 10 at 19:10
I have Linux Mint 18.3 and it doesn't work as well. I guess my memory tricked me. It does work on macOS and Windows. I will update the answer. Thank You.
– Royi
Feb 10 at 20:58
add a comment |
You can define a file named as following - MyInternetShortcut.url
.
It's content should be:
[InternetShortcut]
URL=https://my.amazingsite.com/
This works on Windows and macOS.
Maybe your Linux. Opens in text editor on my Linux Mint 17.3 Mate system.
– kreemoweet
Feb 10 at 19:10
I have Linux Mint 18.3 and it doesn't work as well. I guess my memory tricked me. It does work on macOS and Windows. I will update the answer. Thank You.
– Royi
Feb 10 at 20:58
add a comment |
You can define a file named as following - MyInternetShortcut.url
.
It's content should be:
[InternetShortcut]
URL=https://my.amazingsite.com/
This works on Windows and macOS.
You can define a file named as following - MyInternetShortcut.url
.
It's content should be:
[InternetShortcut]
URL=https://my.amazingsite.com/
This works on Windows and macOS.
edited Feb 10 at 20:59
answered Feb 10 at 18:47
RoyiRoyi
1911316
1911316
Maybe your Linux. Opens in text editor on my Linux Mint 17.3 Mate system.
– kreemoweet
Feb 10 at 19:10
I have Linux Mint 18.3 and it doesn't work as well. I guess my memory tricked me. It does work on macOS and Windows. I will update the answer. Thank You.
– Royi
Feb 10 at 20:58
add a comment |
Maybe your Linux. Opens in text editor on my Linux Mint 17.3 Mate system.
– kreemoweet
Feb 10 at 19:10
I have Linux Mint 18.3 and it doesn't work as well. I guess my memory tricked me. It does work on macOS and Windows. I will update the answer. Thank You.
– Royi
Feb 10 at 20:58
Maybe your Linux. Opens in text editor on my Linux Mint 17.3 Mate system.
– kreemoweet
Feb 10 at 19:10
Maybe your Linux. Opens in text editor on my Linux Mint 17.3 Mate system.
– kreemoweet
Feb 10 at 19:10
I have Linux Mint 18.3 and it doesn't work as well. I guess my memory tricked me. It does work on macOS and Windows. I will update the answer. Thank You.
– Royi
Feb 10 at 20:58
I have Linux Mint 18.3 and it doesn't work as well. I guess my memory tricked me. It does work on macOS and Windows. I will update the answer. Thank You.
– Royi
Feb 10 at 20:58
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f538089%2fhow-to-create-cross-platform-internet-shortcut-files%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2018 update: macs can handle .url files, though they default to Safari. Linux and Android do not handle .url. chrome.google.com/webstore/detail/webcuts/… can make xplatform links for you.
– Ray Foss
Dec 11 '17 at 18:34