Skip to content

Commit

Permalink
remove unnecessary goto
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Dec 9, 2019
1 parent b39a22b commit 0a12908
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/plugins/share/server/routes/goto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,12 @@ export const createGotoRoute = ({
location: http.basePath.prepend(url),
},
});
} else {
return response.redirected({
headers: {
location: http.basePath.prepend('/goto_LP/' + request.params.urlId),
},
});
}
return response.redirected({
headers: {
location: http.basePath.prepend('/goto_LP/' + request.params.urlId),
},
});
})
);
};

0 comments on commit 0a12908

Please sign in to comment.