wixlocation to not working

it will help a lot if you can update the post with your code, that way we might be able to see a syntax error or confirm you need to use Async/await as already suggested.