Sometimes, execs and board members want to be able to post a link in the world (e.g. on posters in MC) to non-website materials. For example, the VPC may want to put up posters linking to a Google Form, but not want to post the ugly google form link.
In this event, it would be good to allow execs to set up redirects. Then, in the example, users could go to mathsoc.uwaterloo.ca/some-form and be redirected to the Google Form.
Criteria:
Backend:
Add a new data file containing an array of objects similar to the following:
type Redirect = {
sitePath: string // e.g. "/executive-appointment-form"
linksTo: string // e.g. "forms.google.com/form/dgjrwitou342edfg"
}
Set up the Express router to redirect from each sitePath to its corresponding linksTo URL.
CMS:
Add a new page to the CMS called "Redirects"
Allow admins to add, edit, and delete redirects (i.e. they can edit the data file)
Feel free to re-use the EditorV2 for this - it would let you skip a lot of the editor setup!
Sometimes, execs and board members want to be able to post a link in the world (e.g. on posters in MC) to non-website materials. For example, the VPC may want to put up posters linking to a Google Form, but not want to post the ugly google form link.
In this event, it would be good to allow execs to set up redirects. Then, in the example, users could go to
mathsoc.uwaterloo.ca/some-form
and be redirected to the Google Form.Criteria:
sitePath
to its correspondinglinksTo
URL.Feel free to re-use the
EditorV2
for this - it would let you skip a lot of the editor setup!