fix: clean urls for hackathons and correcting slug parameter for discussions

This commit is contained in:
pateljannat
2021-04-07 19:53:03 +05:30
parent 3d024a289e
commit 84cf74e25d
7 changed files with 18 additions and 9 deletions

View File

@@ -137,7 +137,9 @@ primary_rules = [
{"from_route": "/courses", "to_route": "courses"},
{"from_route": "/courses/<course>", "to_route": "courses/course"},
{"from_route": "/courses/<course>/<topic>", "to_route": "courses/topic"},
{"from_route": "/courses/<course>/<topic>", "to_route": "courses/topic"}
{"from_route": "/hackathons", "to_route": "hackathons"},
{"from_route": "/hackathons/<hackathon>", "to_route": "hackathons/hackathon"},
{"from_route": "/hackathons/<hackathon>/<project>", "to_route": "hackathons/project"}
]
# Any frappe default URL is blocked by profile-rules, add it here to unblock it