Commit 6a289fe6 authored by rschamp's avatar rschamp

Make /educators routes robust to querystrings

parent 4a6ac3d9
...@@ -137,8 +137,8 @@ ...@@ -137,8 +137,8 @@
}, },
{ {
"name": "educator-landing", "name": "educator-landing",
"pattern": "^/educators/?$", "pattern": "^/educators/?(\\?.*)?$",
"routeAlias": "/educators(?:/(faq|register|waiting))?/?$", "routeAlias": "/educators(?:/(faq|register|waiting))?/?(\\?.*)?$",
"view": "teachers/landing/landing", "view": "teachers/landing/landing",
"title": "Educators" "title": "Educators"
}, },
...@@ -304,22 +304,22 @@ ...@@ -304,22 +304,22 @@
}, },
{ {
"name": "teacher-faq", "name": "teacher-faq",
"pattern": "^/educators/faq/?$", "pattern": "^/educators/faq/?(\\?.*)?$",
"routeAlias": "/educators(?:/(faq|register|waiting))?/?$", "routeAlias": "/educators(?:/(faq|register|waiting))?/?(\\?.*)?$",
"view": "teachers/faq/faq", "view": "teachers/faq/faq",
"title": "Teacher Accounts FAQ" "title": "Teacher Accounts FAQ"
}, },
{ {
"name": "teacherregistration", "name": "teacherregistration",
"pattern": "^/educators/register/?$", "pattern": "^/educators/register/?(\\?.*)?$",
"routeAlias": "/educators(?:/(faq|register|waiting))?/?$", "routeAlias": "/educators(?:/(faq|register|waiting))?/?(\\?.*)?$",
"view": "teacherregistration/teacherregistration", "view": "teacherregistration/teacherregistration",
"title": "Teacher Registration" "title": "Teacher Registration"
}, },
{ {
"name": "teacherwaitingroom", "name": "teacherwaitingroom",
"pattern": "^/educators/waiting", "pattern": "^/educators/waiting",
"routeAlias": "/educators(?:/(faq|register|waiting))?/?$", "routeAlias": "/educators(?:/(faq|register|waiting))?/?(\\?.*)?$",
"view": "teacherwaitingroom/teacherwaitingroom", "view": "teacherwaitingroom/teacherwaitingroom",
"title": "Thank you for requesting a Scratch Teacher Account" "title": "Thank you for requesting a Scratch Teacher Account"
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment