And added the tests. Follow-up to cdca5a2ee4
cdca5a2ee4
* DEV: Move `Discourse.getURL` and related functions to a module * DEV: Remove `Discourse.getURL` and `Discourse.getURLWithCDN` * FIX: `get-url` is required for server side code * DEV: Deprecate `BaseUri` too.
This reverts commit 2abe85b834.
2abe85b834