Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit a334dff

Browse files
committed
Use simpler, more cross-platform JS redirects
- per @froschdesign
1 parent 8ba871f commit a334dff

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+53
-159
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<noscript><meta http-equiv="refresh" content="0; url=v2/cookbook/autowiring-routes-and-pipelines/"></noscript>
22
<script>
33
document.addEventListener("DOMContentLoaded", function (event) {
4-
var uri = new URL(window.location.href);
5-
uri.pathname = 'v2/cookbook/autowiring-routes-and-pipelines/';
6-
window.location = uri.href;
4+
window.location.pathname = 'v2/cookbook/autowiring-routes-and-pipelines/';
75
});
86
</script>
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<noscript><meta http-equiv="refresh" content="0; url=v1/cookbook/custom-404-page-handling/"></noscript>
22
<script>
33
document.addEventListener("DOMContentLoaded", function (event) {
4-
var uri = new URL(window.location.href);
5-
uri.pathname = 'v1/cookbook/custom-404-page-handling/';
6-
window.location = uri.href;
4+
window.location.pathname = 'v1/cookbook/custom-404-page-handling/';
75
});
86
</script>
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<noscript><meta http-equiv="refresh" content="0; url=v2/cookbook/debug-toolbars/"></noscript>
22
<script>
33
document.addEventListener("DOMContentLoaded", function (event) {
4-
var uri = new URL(window.location.href);
5-
uri.pathname = 'v2/cookbook/debug-toolbars/';
6-
window.location = uri.href;
4+
window.location.pathname = 'v2/cookbook/debug-toolbars/';
75
});
86
</script>
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<noscript><meta http-equiv="refresh" content="0; url=v2/cookbook/flash-messengers/"></noscript>
22
<script>
33
document.addEventListener("DOMContentLoaded", function (event) {
4-
var uri = new URL(window.location.href);
5-
uri.pathname = 'v2/cookbook/flash-messengers/';
6-
window.location = uri.href;
4+
window.location.pathname = 'v2/cookbook/flash-messengers/';
75
});
86
</script>
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<noscript><meta http-equiv="refresh" content="0; url=v1/cookbook/modular-layout/"></noscript>
22
<script>
33
document.addEventListener("DOMContentLoaded", function (event) {
4-
var uri = new URL(window.location.href);
5-
uri.pathname = 'v1/cookbook/modular-layout/';
6-
window.location = uri.href;
4+
window.location.pathname = 'v1/cookbook/modular-layout/';
75
});
86
</script>
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<noscript><meta http-equiv="refresh" content="0; url=v2/cookbook/passing-data-between-middleware/"></noscript>
22
<script>
33
document.addEventListener("DOMContentLoaded", function (event) {
4-
var uri = new URL(window.location.href);
5-
uri.pathname = 'v2/cookbook/passing-data-between-middleware/';
6-
window.location = uri.href;
4+
window.location.pathname = 'v2/cookbook/passing-data-between-middleware/';
75
});
86
</script>
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<noscript><meta http-equiv="refresh" content="0; url=v2/cookbook/route-specific-pipeline/"></noscript>
22
<script>
33
document.addEventListener("DOMContentLoaded", function (event) {
4-
var uri = new URL(window.location.href);
5-
uri.pathname = 'v2/cookbook/route-specific-pipeline/';
6-
window.location = uri.href;
4+
window.location.pathname = 'v2/cookbook/route-specific-pipeline/';
75
});
86
</script>
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<noscript><meta http-equiv="refresh" content="0; url=v2/cookbook/setting-locale-depending-routing-parameter/"></noscript>
22
<script>
33
document.addEventListener("DOMContentLoaded", function (event) {
4-
var uri = new URL(window.location.href);
5-
uri.pathname = 'v2/cookbook/setting-locale-depending-routing-parameter/';
6-
window.location = uri.href;
4+
window.location.pathname = 'v2/cookbook/setting-locale-depending-routing-parameter/';
75
});
86
</script>
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<noscript><meta http-equiv="refresh" content="0; url=v2/cookbook/setting-locale-without-routing-parameter/"></noscript>
22
<script>
33
document.addEventListener("DOMContentLoaded", function (event) {
4-
var uri = new URL(window.location.href);
5-
uri.pathname = 'v2/cookbook/setting-locale-without-routing-parameter/';
6-
window.location = uri.href;
4+
window.location.pathname = 'v2/cookbook/setting-locale-without-routing-parameter/';
75
});
86
</script>
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<noscript><meta http-equiv="refresh" content="0; url=v2/cookbook/using-a-base-path/"></noscript>
22
<script>
33
document.addEventListener("DOMContentLoaded", function (event) {
4-
var uri = new URL(window.location.href);
5-
uri.pathname = 'v2/cookbook/using-a-base-path/';
6-
window.location = uri.href;
4+
window.location.pathname = 'v2/cookbook/using-a-base-path/';
75
});
86
</script>

0 commit comments

Comments
 (0)