Turns out the correct way to fix the resource loading issue is to set a base URL