Skip to content

Commit cfac5de

Browse files
committed
Replace .md in redirect url with .html
1 parent 1c8fc10 commit cfac5de

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/monogame/conceptual.extension.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
*/
44
exports.preTransform = function (model) {
55

6+
// Handle redirect urls that end with .md
7+
if(model.redirect) {
8+
model.redirect = model.redirect.replace(/\.md/g, '.html');
9+
}
610

711
// For layout pages, ignore injecting title and description as header and
812
// first paragraph

0 commit comments

Comments
 (0)