Skip to content

Commit

Permalink
🐛 修复 404 页面相对路径2
Browse files Browse the repository at this point in the history
#855 丢失了引号?成了光杆司令
```
Uncaught SyntaxError: Invalid regular expression: missing /
```
  • Loading branch information
naicfeng authored and zkqiang committed Nov 13, 2022
1 parent 5498a83 commit 7a20f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layout/404.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ page.banner_mask_alpha = theme.page404.banner_mask_alpha

<script>
function redirect() {
location.href = <%- url_for('/') %>;
location.href = "<%- url_for('/') %>";
}
<% if (theme.page404.redirect_delay) { %>
Expand Down

0 comments on commit 7a20f85

Please sign in to comment.