|
|
@@ -307,7 +307,6 @@ module.exports = function(crowi, app) {
|
|
|
res.redirect('/');
|
|
|
return ;
|
|
|
}
|
|
|
-
|
|
|
if (req.query.revision) {
|
|
|
return res.redirect(encodeURI(path));
|
|
|
}
|
|
|
@@ -321,6 +320,13 @@ module.exports = function(crowi, app) {
|
|
|
if (page) {
|
|
|
return res.redirect(encodeURI(path) + '/');
|
|
|
} else {
|
|
|
+
|
|
|
+ var fixed = Page.fixToCreatableName(path)
|
|
|
+ if (fixed !== path) {
|
|
|
+ res.redirect(fixed);
|
|
|
+ return ;
|
|
|
+ }
|
|
|
+
|
|
|
debug('Catch pageShow', err);
|
|
|
return renderPage(null, req, res);
|
|
|
}
|