@mashroom/mashroom
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -14,3 +14,13 @@ "use strict"; | ||
} else { | ||
res.redirect(pluginContext.serverConfig.indexPage); | ||
let redirectPath = pluginContext.serverConfig.indexPage; | ||
const { | ||
originalUrl | ||
} = req; | ||
const queryIdx = originalUrl.indexOf('?'); | ||
if (queryIdx > -1) { | ||
redirectPath += originalUrl.substr(queryIdx); | ||
} | ||
res.redirect(redirectPath); | ||
} | ||
@@ -17,0 +27,0 @@ }; |
@@ -7,3 +7,3 @@ { | ||
"license": "MIT", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"main": "dist", | ||
@@ -21,3 +21,3 @@ "files": [ | ||
"dependencies": { | ||
"@mashroom/mashroom-utils": "1.2.1", | ||
"@mashroom/mashroom-utils": "1.2.2", | ||
"chokidar": "^3.2.3", | ||
@@ -24,0 +24,0 @@ "express": "^4.17.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
145293
3560
+ Added@mashroom/mashroom-utils@1.2.2(transitive)
- Removed@mashroom/mashroom-utils@1.2.1(transitive)