This only worked for local builds with a baseURL of http://localhost:1313/ but not on something like http://myserver/mybase/.