Skip to content

Commit 01efbf2

Browse files
Temporary fix for w3c.github.io redirect breakage
See mdn/content#26613. The change made in w3c@52077ef broke all links to CSS specs in all MDN CSS articles. This is an attempt to get all those links unbroken temporarily until we can find a better fix.
1 parent e7eb9e2 commit 01efbf2

File tree

83 files changed

+166
-166
lines changed

Some content is hidden

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

83 files changed

+166
-166
lines changed

css-align/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!doctype html><html lang=en><title>Moved…</title><meta charset="utf-8">
22
<body onload='(function() {
3-
const path = location.path ? location.path : "";
3+
const path = location.pathname ? location.pathname : "";
44
const hash = location.hash ? location.hash : "";
5-
location.href = `https://drafts.csswg.org/${path}${hash}`;
5+
location.href = `https://drafts.csswg.org${path}${hash}`;
66
})()'>

css-anchor-position/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!doctype html><html lang=en><title>Moved…</title><meta charset="utf-8">
22
<body onload='(function() {
3-
const path = location.path ? location.path : "";
3+
const path = location.pathname ? location.pathname : "";
44
const hash = location.hash ? location.hash : "";
5-
location.href = `https://drafts.csswg.org/${path}${hash}`;
5+
location.href = `https://drafts.csswg.org${path}${hash}`;
66
})()'>

css-animations/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!doctype html><html lang=en><title>Moved…</title><meta charset="utf-8">
22
<body onload='(function() {
3-
const path = location.path ? location.path : "";
3+
const path = location.pathname ? location.pathname : "";
44
const hash = location.hash ? location.hash : "";
5-
location.href = `https://drafts.csswg.org/${path}${hash}`;
5+
location.href = `https://drafts.csswg.org${path}${hash}`;
66
})()'>

css-backgrounds/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!doctype html><html lang=en><title>Moved…</title><meta charset="utf-8">
22
<body onload='(function() {
3-
const path = location.path ? location.path : "";
3+
const path = location.pathname ? location.pathname : "";
44
const hash = location.hash ? location.hash : "";
5-
location.href = `https://drafts.csswg.org/${path}${hash}`;
5+
location.href = `https://drafts.csswg.org${path}${hash}`;
66
})()'>

css-block/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!doctype html><html lang=en><title>Moved…</title><meta charset="utf-8">
22
<body onload='(function() {
3-
const path = location.path ? location.path : "";
3+
const path = location.pathname ? location.pathname : "";
44
const hash = location.hash ? location.hash : "";
5-
location.href = `https://drafts.csswg.org/${path}${hash}`;
5+
location.href = `https://drafts.csswg.org${path}${hash}`;
66
})()'>

css-box/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!doctype html><html lang=en><title>Moved…</title><meta charset="utf-8">
22
<body onload='(function() {
3-
const path = location.path ? location.path : "";
3+
const path = location.pathname ? location.pathname : "";
44
const hash = location.hash ? location.hash : "";
5-
location.href = `https://drafts.csswg.org/${path}${hash}`;
5+
location.href = `https://drafts.csswg.org${path}${hash}`;
66
})()'>

css-break/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!doctype html><html lang=en><title>Moved…</title><meta charset="utf-8">
22
<body onload='(function() {
3-
const path = location.path ? location.path : "";
3+
const path = location.pathname ? location.pathname : "";
44
const hash = location.hash ? location.hash : "";
5-
location.href = `https://drafts.csswg.org/${path}${hash}`;
5+
location.href = `https://drafts.csswg.org${path}${hash}`;
66
})()'>

css-cascade/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!doctype html><html lang=en><title>Moved…</title><meta charset="utf-8">
22
<body onload='(function() {
3-
const path = location.path ? location.path : "";
3+
const path = location.pathname ? location.pathname : "";
44
const hash = location.hash ? location.hash : "";
5-
location.href = `https://drafts.csswg.org/${path}${hash}`;
5+
location.href = `https://drafts.csswg.org${path}${hash}`;
66
})()'>

css-color-adjust/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!doctype html><html lang=en><title>Moved…</title><meta charset="utf-8">
22
<body onload='(function() {
3-
const path = location.path ? location.path : "";
3+
const path = location.pathname ? location.pathname : "";
44
const hash = location.hash ? location.hash : "";
5-
location.href = `https://drafts.csswg.org/${path}${hash}`;
5+
location.href = `https://drafts.csswg.org${path}${hash}`;
66
})()'>

css-color/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!doctype html><html lang=en><title>Moved…</title><meta charset="utf-8">
22
<body onload='(function() {
3-
const path = location.path ? location.path : "";
3+
const path = location.pathname ? location.pathname : "";
44
const hash = location.hash ? location.hash : "";
5-
location.href = `https://drafts.csswg.org/${path}${hash}`;
5+
location.href = `https://drafts.csswg.org${path}${hash}`;
66
})()'>

0 commit comments

Comments
 (0)