Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMS: Redirects #249

Open
some-molasses opened this issue Jun 23, 2024 · 0 comments
Open

CMS: Redirects #249

some-molasses opened this issue Jun 23, 2024 · 0 comments

Comments

@some-molasses
Copy link
Member

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant