preserve base URL when using history location for routing