Skip to content
Snippets Groups Projects
Commit 5db488bb authored by esikkala's avatar esikkala
Browse files

ResultTable url: use replace instead of push

parent 45fb6b67
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ class ResultTable extends React.Component {
// then update app state and url accordingly
this.props.updatePage(this.props.resultClass, page)
history.push({
history.replace({
pathname: `${this.props.rootUrl}/${this.props.resultClass}/faceted-search/table`,
search: `?page=${page}`
})
......@@ -112,7 +112,7 @@ class ResultTable extends React.Component {
// always fetch new results when page has updated
if (prevProps.data.page !== this.props.data.page) {
this.fetchResults()
history.push({
history.replace({
pathname: `${this.props.rootUrl}/${this.props.resultClass}/faceted-search/table`,
search: `?page=${this.props.data.page}`
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment