We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4cc1b0 commit 7842a65Copy full SHA for 7842a65
src/routes.ts
@@ -86,7 +86,7 @@ export function createHref(
86
87
const compiledRoute = `${compile(preparedRoute)(params)}${search}`;
88
89
- if (options.withBasename) {
+ if (options.withBasename && basename) {
90
// For SPA links react-router adds basename itself
91
// It is needed for external links - <a> or uikit <Link>
92
return normalizePathSlashes(`${basename}/${compiledRoute}`);
0 commit comments