Skip to content

Commit 7a20f85

Browse files
naicfengzkqiang
authored andcommitted
🐛 修复 404 页面相对路径2
#855 丢失了引号?成了光杆司令 ``` Uncaught SyntaxError: Invalid regular expression: missing / ```
1 parent 5498a83 commit 7a20f85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layout/404.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ page.banner_mask_alpha = theme.page404.banner_mask_alpha
99

1010
<script>
1111
function redirect() {
12-
location.href = <%- url_for('/') %>;
12+
location.href = "<%- url_for('/') %>";
1313
}
1414
1515
<% if (theme.page404.redirect_delay) { %>

0 commit comments

Comments
 (0)