To ensure switching between pages works seamlessly we need to clear the the preview data from previous route because in some instances it sets duplicate cookie values which causes the page-not-found error.
Testing Details
[ ] Unit Test Added
[x] Manual Test/Other (Please elaborate)
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Description / Motivation
To ensure switching between pages works seamlessly we need to clear the the preview data from previous route because in some instances it sets duplicate cookie values which causes the
page-not-found
error.Testing Details
Types of changes