Western-Rank / western-rank

A course review platform for Western University and affiliate colleges!
https://westernrank.com
4 stars 0 forks source link

Canonical Redirect #94

Open LordExodius opened 1 year ago

LordExodius commented 1 year ago

I think it would be helpful for navigation/accessibility if there was a canonical redirect feature for course pages.

I.e., going to http://westernrank.com/course/compsci-1027 should automatically redirect to http://westernrank.com/course/compsci-1027a:b, given that no courses should have duplicate pre-suffix codes.

This feature is enabled on WordPress sites by default, as documented here: https://developer.wordpress.org/reference/functions/redirect_canonical/

We don't have multiple URL schemes linking to the same page, so the focus is mainly on the autocorrection feature:

Will also attempt to find the correct link when a user enters a URL that does not exist based on exact WordPress query. Will instead try to parse the URL or query in an attempt to figure the correct page to go to.