[www] minor refactoring and remove console.log
This commit is contained in:
1 parent
0ebf8c7185
commit
c9a24c008b
4 files changed
+1
-26
No files matched your search
@@ -1,15 +0,0 @@
|
||||
function redirectFragment() {
|
||||
return async (ctx, next) => {
|
||||
const query = ctx.query
|
||||
|
||||
console.log(query)
|
||||
|
||||
if ('_escaped_fragment_' in query) {
|
||||
ctx.redirect(ctx.path)
|
||||
} else {
|
||||
await next()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = redirectFragment
|
||||
Reference in new issue
Block a user