Skip to content
Snippets Groups Projects
Verified Commit 9453716b authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

trick to keep legacy from in redirect

parent 3f6a3a46
No related branches found
No related tags found
2 merge requests!384Fix legacy,!382[release] Regular merge of develop
Pipeline #58894 passed with warnings
......@@ -170,6 +170,11 @@ def generate_header(folder, permalink, shortcut, order, legacy_from, title, desc
header += " - /cards/" + root_lab(shortcut) + "\n"
header += " - /" + folder + "/cards/" + root_lab(shortcut) + "\n"
# include the legacy section in the redirect_from section
if len(legacy_from) > 0:
for item in legacy_from[1:-1]:
header += str(item)
# add the title and description
if len(title) > 0:
header += "title: " + title + "\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment