diff options
author | cel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519> | 2020-11-27 14:37:14 -0500 |
---|---|---|
committer | cel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519> | 2020-11-27 14:37:14 -0500 |
commit | f77314cb7671f5b849bd2c4431381ac1b9984bb1 (patch) | |
tree | 18224ea0aa59c1575b0509474269452e17a4c8eb | |
parent | 8c041619fc4e7903ba9c99b7bd290c0719a21972 (diff) | |
download | patchfoo-f77314cb7671f5b849bd2c4431381ac1b9984bb1.tar.gz patchfoo-f77314cb7671f5b849bd2c4431381ac1b9984bb1.zip |
Respect base URL in redirect
-rw-r--r-- | lib/serve.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/serve.js b/lib/serve.js index 50bfff2..a06f566 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -215,7 +215,7 @@ Serve.prototype.go = function () { var u = Url.parse(self.req.url) var q = u.query || (u.query = {}) q.published = publishedMsg.key - self.redirect(Url.format(u)) + self.redirect(self.app.render.toUrl(Url.format(u))) } } else { self.handle() |