We also discussed (@nedbat and @auraz) about making a setting on `XBlock.handler` or on `Runtime.handler_url` to get absolute urls. I'd rather have that feature added than have you doing it custom here.