aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519>2020-11-27 14:37:14 -0500
committercel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519>2020-11-27 14:37:14 -0500
commitf77314cb7671f5b849bd2c4431381ac1b9984bb1 (patch)
tree18224ea0aa59c1575b0509474269452e17a4c8eb /lib
parent8c041619fc4e7903ba9c99b7bd290c0719a21972 (diff)
downloadpatchfoo-f77314cb7671f5b849bd2c4431381ac1b9984bb1.tar.gz
patchfoo-f77314cb7671f5b849bd2c4431381ac1b9984bb1.zip
Respect base URL in redirect
Diffstat (limited to 'lib')
-rw-r--r--lib/serve.js2
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()