Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 70837b400d | |||
| e3937a833f | |||
| db6c5f5079 | |||
| 3700c525ae | |||
| d70e660a79 | |||
| 4cda747412 | |||
| 68e4de75bf | |||
| bd548f16da |
@ -1038,12 +1038,6 @@
|
|||||||
// TODO why are redirects broken?
|
// TODO why are redirects broken?
|
||||||
var redirectHtml = Mustache.render(desi.partials.redirect, view);
|
var redirectHtml = Mustache.render(desi.partials.redirect, view);
|
||||||
entity.redirects.forEach(function (redirect) {
|
entity.redirects.forEach(function (redirect) {
|
||||||
if ("" === path.extname(redirect)) {
|
|
||||||
redirect += "/";
|
|
||||||
}
|
|
||||||
if ("/" === redirect[redirect.length - 1]) {
|
|
||||||
redirect += "index.html";
|
|
||||||
}
|
|
||||||
compiled.push({
|
compiled.push({
|
||||||
contents: redirectHtml,
|
contents: redirectHtml,
|
||||||
path: redirect,
|
path: redirect,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user