Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
7 years ago
Commit
7719d30dfb3786c21432b8ab660008afddd57f05
1 parent
dab9695c
fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
apps/product/controllers/list.js
apps/product/controllers/list.js
View file @
7719d30
...
...
@@ -28,7 +28,11 @@ exports.index = (req, res, next) => {
if
(
req
.
originalUrl
&&
req
.
originalUrl
.
indexOf
(
'.html'
)
<
0
&&
!
_
.
isEmpty
(
req
.
query
))
{
return
res
.
redirect
(
301
,
helpers
.
urlFormat
(
handleFilterUrl
(
'/list'
,
req
.
query
)));
let
rUrl
=
handleFilterUrl
(
'/list'
,
req
.
query
);
if
(
rUrl
!==
req
.
originalUrl
)
{
return
res
.
redirect
(
301
,
helpers
.
urlFormat
(
rUrl
));
}
}
try
{
...
...
Please
register
or
login
to post a comment