add base href dynamically