use relative links instead of absolute to allow subpath installation
This commit is contained in:
parent
5183db5829
commit
513d05d8b0
2 changed files with 8 additions and 4 deletions
|
@ -66,19 +66,23 @@ router.get("/", function (req, res) {
|
|||
})
|
||||
|
||||
router.get("/demo", function (req, res) {
|
||||
url = req.header("host") + req.baseUrl
|
||||
res.render("index.jade", {
|
||||
pageTitle: "Post-it - demo",
|
||||
headerBarUrl: headerBarUrl,
|
||||
logoUrl: logoUrl,
|
||||
url: url,
|
||||
demo: true
|
||||
})
|
||||
})
|
||||
|
||||
router.get("/:id", function (req, res) {
|
||||
url = req.header("host") + req.baseUrl
|
||||
res.render("index.jade", {
|
||||
pageTitle: "Post-it - " + req.params.id,
|
||||
headerBarUrl: headerBarUrl,
|
||||
logoUrl: logoUrl
|
||||
logoUrl: logoUrl,
|
||||
url: url
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue