mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 19:26:31 -05:00
Updated response.js, the render url now using config getserverurl()
This commit is contained in:
parent
f307ce5bab
commit
75ae505a15
1 changed files with 2 additions and 2 deletions
|
@ -186,7 +186,7 @@ function showPublishNote(req, res, next) {
|
||||||
filename: template
|
filename: template
|
||||||
};
|
};
|
||||||
var compiled = ejs.compile(fs.readFileSync(template, 'utf8'), options);
|
var compiled = ejs.compile(fs.readFileSync(template, 'utf8'), options);
|
||||||
var origin = "//" + req.headers.host;
|
var origin = config.getserverurl();
|
||||||
var html = compiled({
|
var html = compiled({
|
||||||
title: title,
|
title: title,
|
||||||
viewcount: note.viewcount,
|
viewcount: note.viewcount,
|
||||||
|
@ -246,7 +246,7 @@ function actionPretty(req, res, noteId) {
|
||||||
title = Note.generateWebTitle(title);
|
title = Note.generateWebTitle(title);
|
||||||
var template = config.prettypath;
|
var template = config.prettypath;
|
||||||
var compiled = ejs.compile(fs.readFileSync(template, 'utf8'));
|
var compiled = ejs.compile(fs.readFileSync(template, 'utf8'));
|
||||||
var origin = "//" + req.headers.host;
|
var origin = config.getserverurl();
|
||||||
var html = compiled({
|
var html = compiled({
|
||||||
title: title,
|
title: title,
|
||||||
url: origin,
|
url: origin,
|
||||||
|
|
Loading…
Reference in a new issue