fix: use history.push to preserve history for user navigation (#35)

We continue to use history.replace for building the MFE URL, which we don’t want saved in history.
This commit is contained in:
David Joy
2020-03-24 11:09:45 -04:00
committed by GitHub
parent 8f4ff79351
commit a923f3d8e7
2 changed files with 6 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ function ContentLock({
intl, courseId, prereqSectionName, prereqId, sequenceTitle,
}) {
const handleClick = useCallback(() => {
history.replace(`/course/${courseId}/${prereqId}`);
history.push(`/course/${courseId}/${prereqId}`);
});
return (