Dashboard upgrade link broken (subdirectory bug)

The “Click here to upgrade” link in the dashboard appears to be broken in subdirectory installs. Is does not include our subdirectory in the URL.

Dup: https://meta.discourse.org/t/subfolder-issues/53972?u=falco