のためにリダイレクトされていない、私のルーターページでReactstrapまたはリアクト・ルータV4のは、私のヘッダー内の一部のアドレスリンクの変更
<NavItem>
<NavLink tag={Link} to="/template/editor">New Template</NavLink>
</NavItem>
私は私のホームページ上だ場合
<BrowserRouter>
<div className="container-fluid">
<Header />
<section className="page-content">
<Route exact path="/" component={HomePage} />
<Route exact path="/template/editor/:id?" component={Authenticate(EditorPage)} />
</section>
</div>
</BrowserRouter>
(/)とNew Template Link(/ template/editor)をクリックすると、New Templateページにリダイレクトされます。しかし、私が(/ template/editor/3)をオンにして、新しいテンプレートリンク(/ template/editor)をクリックすると、アドレスバーは更新されますが、ページはルーティングされません。私は何かシンプルなものを欠いていると確信していますが、私は何が分かりません。
react-reduxと 'connect'を多分使っていますか? – Tomasz
@トーマスはい、なぜですか? – SILENT
多分これに関連している:https://stackoverflow.com/questions/43895805/react-router-4-does-not-update-view-on-link-but-does-on-refresh – Tomasz