Added nice urls to sketch pages.

The URL of a sketch will be `/skectes/<sketch-name>`. That would still be like
`/skectes/SKETCH-123`. It would interesting to try to make it `/sketches/123`.
This commit is contained in:
Anand Chitipothu
2021-04-01 06:32:32 +00:00
parent 53af969a2e
commit e42e00f83a
2 changed files with 4 additions and 3 deletions

View File

@@ -128,6 +128,7 @@ scheduler_events = {
# auto_cancel_exempted_doctypes = ["Auto Repeat"]
website_route_rules = [
{"from_route": "/sketches/<sketch>", "to_route": "sketches/sketch"},
{"from_route": "/courses/<course>", "to_route": "courses/course"},
{"from_route": "/courses/<course>/<topic>", "to_route": "courses/topic"},
]