From dce68ce813e3c9b758289b95efa741b55ae332c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ken-H=C3=A5vard=20Lieng?= Date: Fri, 21 Apr 2017 03:31:35 +0200 Subject: [PATCH] Return req.originalUrl from gulpfile proxy --- client/gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/gulpfile.js b/client/gulpfile.js index c7403a89..39db5fce 100644 --- a/client/gulpfile.js +++ b/client/gulpfile.js @@ -107,7 +107,7 @@ gulp.task('dev', ['css', 'fonts', 'fonts:woff', 'config', 'compress:dev', 'binda app.use('*', proxy('localhost:1337', { forwardPath: function(req, res) { - return url.parse(req.url).path; + return req.originalUrl; } }));