In lib/drake.class I think the cakeApplicationId should just be application. It must be an artifact from some previous code.

It effect if you are using multiple applications and call $drake->getUrl() you will only get the default application. Which is no application specified in the url.