First of all, thanks for creating a separate package for people to use.
As the title suggests the issue is that when the locale is part of the url position restore is not working I see that this behavior is expected and is mentioned in the code:
/**
* Calling with relative url, not expected asPath, so this
* will break if there is a basePath or locale path prefix.
*/
But should we maybe use router.asPath for the restore pathname instead of the url?
First of all, thanks for creating a separate package for people to use.
As the title suggests the issue is that when the locale is part of the url position restore is not working I see that this behavior is expected and is mentioned in the code:
But should we maybe use
router.asPath
for the restorepathname
instead of theurl
?