We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f890d6 commit 904be23Copy full SHA for 904be23
src/shared/containers/terms-detail/index.jsx
@@ -75,8 +75,8 @@ class TermsDetailPageContainer extends React.Component {
75
const { termsAccepted, showModal } = this.state;
76
77
if (details && details.isLegacyTerm && !history.location.pathname.includes(details.id)) {
78
- history.location.pathname = `/challenges/terms/detail/${details.id}`; // eslint-disable-line no-param-reassign
79
- history.push(history.location.pathname, history.state);
+ const path = `/challenges/terms/detail/${details.id}`;
+ history.push(path, history.state);
80
}
81
82
return (
0 commit comments