DEV: Move `Discourse.getURL` and related functions to a module (PR #9966)

GitHub