Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rules b/Rules
index c59e75ed..42c20996 100644
--- a/Rules
+++ b/Rules
@@ -18,7 +18,7 @@ preprocess do
end
else
# If the provided relative URL is in Markdown, correct it to HTML.
- unless item[:redirect_to].to_s.match(/.html$/)
+ if item[:redirect_to].to_s.match(/.md$/)
item[:redirect_to] = item[:redirect_to].gsub!(/\.md/, '.html')
end
end