When a user clicks on a link generated by the Link component from next/link, Next.js adds special parameters in the route called path. This is why the redirects middleware doesn't work correctly when the user clicks on the link. In this PR, a special method is added to remove this parameter from Next.js
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
When a user clicks on a link generated by the Link component from next/link, Next.js adds special parameters in the route called path. This is why the redirects middleware doesn't work correctly when the user clicks on the link. In this PR, a special method is added to remove this parameter from Next.js
Testing Details
Types of changes