Skip to content

Janky temporary solution for campus map links#288

Open
Bongo50 wants to merge 1 commit intoUWCS:masterfrom
Bongo50:patch-1
Open

Janky temporary solution for campus map links#288
Bongo50 wants to merge 1 commit intoUWCS:masterfrom
Bongo50:patch-1

Conversation

@Bongo50
Copy link
Copy Markdown

@Bongo50 Bongo50 commented Sep 7, 2025

Temporary fix for #286.

I was supprised to learn that the API for the old campus map still exists (example). The "_id" key in the response is what used to be used in the longer form of URLs that could be used to link to rooms. There are several Warwick services that will take this ID and translate it into a nearly always functional link to the new map. For example, https://warwick.ac.uk/sitebuilder2/api/campus_map/location/ID_HERE, which is what I used for this PR.

However, sometimes the link it produces to the new campus map doesn't work, and the old map's API probably won't exist forever, so this will need to be replaced in the future.

It's worth noting that https://tabula.warwick.ac.uk/admin/scientia-rooms lists these IDs for each room that it supports.

@raven0034 raven0034 self-requested a review March 8, 2026 03:50
Copy link
Copy Markdown
Contributor

@ericthelemur ericthelemur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks good, seems to work, but I don't have a Warwick login so can't be sure it still does. Can you retest, then merge

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

Successfully merging this pull request may close these issues.

2 participants