Authored by yyq

Merge branch 'feature/seo0423' into release/6.5.5

... ... @@ -10,6 +10,8 @@ const helpers = global.yoho.helpers;
const logger = global.yoho.logger;
const _ = require('lodash');
const handleFilterUrl = require(`${global.utils}/parameter`).fullParamToMinPath;
// 搜索相关接口
const searchApi = require('../models/search-api');
const list = require('../models/list');
... ... @@ -24,6 +26,11 @@ exports.index = (req, res, next) => {
let resData = {};
let qs = '';
if (req.originalUrl && req.originalUrl.indexOf('.html') < 0 &&
!_.isEmpty(req.query)) {
return res.redirect(301, helpers.urlFormat(handleFilterUrl('/list', req.query)));
}
try {
qs = decodeURIComponent(req._parsedOriginalUrl.query || '');
} catch (e) {
... ...