While we're at it, also refactor the function used by OnOpenModsPage to be compatible with other URLs