[BUGFIX beta] preserve base URL when using history location for routing
Merge pull request #3877 from matoilic/master

Preserve base URL when using history location for routing.