Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Commit

Permalink
fx
Browse files Browse the repository at this point in the history
  • Loading branch information
JingleH committed Jun 26, 2023
1 parent 6802457 commit 3f33559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion express/scripts/template-redirect.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async function existsTemplatePage(url) {
window.location.replace('/express/templates/');
}

if ((env && env.name !== 'stage') || (title && title.innerText.match(/{{(.*?)}}/))) {
if ((env && env.name !== 'stage') && (title && title.innerText.match(/{{(.*?)}}/))) {
window.location.replace('/404');
}
}());
Expand Down

0 comments on commit 3f33559

Please sign in to comment.