Feature/fix public path

With `serve: false`, the `href` output was incorrect. This PR resolves the issue.