Skip to content

Commit

Permalink
fix: fixed hash change issue
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Aug 15, 2023
1 parent ae3556e commit a7768d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/views/layout.pug
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ html.h-100.no-js(
body.d-flex.flex-column.min-h-100.app(
role="document",
onload=isBot(ctx.get("User-Agent")) ? "if (typeof lazyload === 'function') { lazyload(); }" : false,
id=ctx.pathWithoutLocale === "/" ? "freddy" : ""
id=ctx.pathWithoutLocale === "/" ? "freddy" : "",
data-ignore-hash-change=ctx.pathWithoutLocale === "/" ? true : false
)
- const isHelp = ctx.pathWithoutLocale && ctx.pathWithoutLocale === "/help";
- const isRegisterOrLogin = ctx.pathWithoutLocale && ["/register", config.loginRoute].includes(ctx.pathWithoutLocale);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@ioredis/commands": "1.2.0",
"@koa/router": "12.0.0",
"@ladjs/api": "14.1.6",
"@ladjs/assets": "2.1.21",
"@ladjs/assets": "2.1.22",
"@ladjs/consolidate": "1.0.1",
"@ladjs/env": "4.0.0",
"@ladjs/graceful": "3.2.2",
Expand Down

0 comments on commit a7768d8

Please sign in to comment.