Directly linking to vacancies is broken

One-sentence description

When clicking a vacancy and copy-pasting the link, the resulting page does not show the actual vacancy.

Current behaviour

Copy-pasting a link to a vacancy causes you to navigate to a seemingly random part of the page. This is probably due to the Javascript loading quite late. I realize this is perhaps non-trivial to fix, but that's Javascript for you.

Expected behaviour

Copy-pasting a link to a vacancy causes you to navigate to the correct uncollapsed vacancy. Perhaps this can be more easily achieved by passing a server-sided CSS class when a page with an anchor is requested.

Steps to reproduce

  1. Go to e.g. https://thalia.nu/career/vacancies#vacancy-41
  2. Land randomly on the page rather than seeing the correct uncollapsed vacancy
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information