Skip to content
Snippets Groups Projects
Commit 22d0294b authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

Merge branch 'fix-legacy' into 'develop'

Fix legacy

See merge request R3/howto-cards!384
parents e5beccfe f5784f5f
No related branches found
No related tags found
2 merge requests!384Fix legacy,!382[release] Regular merge of develop
Pipeline #58902 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"
......
......@@ -6,6 +6,9 @@ shortcut: on-offboarding:onboarding
redirect_from:
- /cards/on-offboarding:onboarding
- /external/cards/on-offboarding:onboarding
- /external/on-offboarding/godparent
- /external/on-offboarding/checklistGodparent
- /external/on-offboarding/checklistGetStarted
legacy_from:
- /external/on-offboarding/godparent
- /external/on-offboarding/checklistGodparent
......
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