Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include url for default routes within match #90

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed string literal "undefined"
alexanderknapstein committed Mar 8, 2019
commit d77e80439a03abed9a4359f521eae797f74f2dcc
2 changes: 1 addition & 1 deletion packages/router/src/components/switch/switch.tsx
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ function getUniqueId() {
}

function getMatch(pathname: string, url: any, exact: boolean) {
url = (typeof url === undefined) ? pathname : url;
url = (typeof url === "undefined") ? pathname : url;
return matchPath(pathname, {
path: url,
exact: exact,