diff --git a/index.html b/index.html
index 76dc4f8..70bbb26 100644
--- a/index.html
+++ b/index.html
@@ -9,11 +9,8 @@
-
+
Rail Map Toolkit
diff --git a/package-lock.json b/package-lock.json
index 71d6543..e89b486 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -13,7 +13,7 @@
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
"@railmapgen/rmg-components": "^10.0.6",
- "@railmapgen/rmg-runtime": "^9.0.1",
+ "@railmapgen/rmg-runtime": "^9.0.2",
"@railmapgen/rmg-translate": "^3.1.2",
"@reduxjs/toolkit": "^2.1.0",
"framer-motion": "^11.0.3",
@@ -3669,9 +3669,9 @@
}
},
"node_modules/@railmapgen/rmg-runtime": {
- "version": "9.0.1",
- "resolved": "https://registry.npmjs.org/@railmapgen/rmg-runtime/-/rmg-runtime-9.0.1.tgz",
- "integrity": "sha512-m6CZynaAVe8SDnMCmFYwpYDNUcHMYxbfPmlHWm6U99g42P77gn6B50vGFyOZKC/NWUywPnjXsYQBzJBqnQnyUw==",
+ "version": "9.0.2",
+ "resolved": "https://registry.npmjs.org/@railmapgen/rmg-runtime/-/rmg-runtime-9.0.2.tgz",
+ "integrity": "sha512-n7nVmYNyLC8wIzsoQhi9QumnfpS/cdjHPhJj80sTaf0ywVf6m24N2DQdGnF6e1v9KK1zDS3gOod/qN46wOnvwA==",
"dependencies": {
"i18next": "^23.7.16"
}
@@ -12925,9 +12925,9 @@
}
},
"@railmapgen/rmg-runtime": {
- "version": "9.0.1",
- "resolved": "https://registry.npmjs.org/@railmapgen/rmg-runtime/-/rmg-runtime-9.0.1.tgz",
- "integrity": "sha512-m6CZynaAVe8SDnMCmFYwpYDNUcHMYxbfPmlHWm6U99g42P77gn6B50vGFyOZKC/NWUywPnjXsYQBzJBqnQnyUw==",
+ "version": "9.0.2",
+ "resolved": "https://registry.npmjs.org/@railmapgen/rmg-runtime/-/rmg-runtime-9.0.2.tgz",
+ "integrity": "sha512-n7nVmYNyLC8wIzsoQhi9QumnfpS/cdjHPhJj80sTaf0ywVf6m24N2DQdGnF6e1v9KK1zDS3gOod/qN46wOnvwA==",
"requires": {
"i18next": "^23.7.16"
}
diff --git a/package.json b/package.json
index f759a98..1f2d0fa 100644
--- a/package.json
+++ b/package.json
@@ -11,7 +11,7 @@
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
"@railmapgen/rmg-components": "^10.0.6",
- "@railmapgen/rmg-runtime": "^9.0.1",
+ "@railmapgen/rmg-runtime": "^9.0.2",
"@railmapgen/rmg-translate": "^3.1.2",
"@reduxjs/toolkit": "^2.1.0",
"framer-motion": "^11.0.3",
diff --git a/src/inject-seo.ts b/src/inject-seo.ts
index ba84ac5..70cf824 100644
--- a/src/inject-seo.ts
+++ b/src/inject-seo.ts
@@ -1,8 +1,6 @@
-const injectCanonicalLink = () => {
- const link = document.createElement('link');
- link.rel = 'canonical';
- link.href = window.location.origin;
- document.head.appendChild(link);
+const overrideCanonicalLink = () => {
+ const link = document.querySelector('link[rel="canonical"]')!;
+ link.setAttribute('href', window.location.origin);
};
-injectCanonicalLink();
+overrideCanonicalLink();