Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
chunlaw committed Apr 12, 2024
2 parents 09fd635 + 2f586a3 commit 2c97c92
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/i18n/translation.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ const resources = {
minibus: "小巴",
lightRail: "輕鐵",
mtr: "港鐵",
ferry: "輪船",
ferry: "渡輪",
"KMB first": "九巴優先",
"CTB first": "城巴優先",
"route-search-no-result": "沒有結果",
Expand Down
5 changes: 4 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ export const setSeoHeader = ({
?.setAttribute("content", description);
document
.querySelector('link[rel="canonical"]')
?.setAttribute("href", `https://hkbus.app${window.location.pathname.replace(/\(/g, "%28").replace(/\)/g, "%29")}`);
?.setAttribute(
"href",
`https://hkbus.app${window.location.pathname.replace(/\(/g, "%28").replace(/\)/g, "%29")}`
);
// language related meta tag
document
.querySelector("html")
Expand Down

0 comments on commit 2c97c92

Please sign in to comment.