I have been using the WixRouterRequest in ‘wix-router’ and need to parse the query and hash parameters of a URL before redirecting. When I try to read the hash value, it is empty.
export function my_Router(request) {
const query = request.query; // works
const hash = request.hash; // is frickin' empty!
...
}
It is in their documentation.
How can I access the hash?!
Also, it is 2024. I’ve seen discussions of this issue dating back till at least 2018. 6 years seems like enough time, right? I will avoid Wix in the future, but for now I’m stuck. Maybe that’s the point. What a unbelievably frustrating product.