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 ff26e41 commit 1eee3c3Copy full SHA for 1eee3c3
src/index.js
@@ -40,9 +40,9 @@ export default function DynamicRoute(props) {
40
path="/"
41
render={({ history }) => (
42
<AsyncComponent
43
- path={window.location.pathname}
44
- search={window.location.search}
45
- component={props.page(window.location.pathname)}
+ path={history.location.pathname}
+ search={history.location.search}
+ component={props.page(history.location.pathname)}
46
loading={props.loading || 'Loading..'}
47
onError={props.onError}
48
otherProps={props.props}
0 commit comments