Redirect/Forward one page of my website

Thanks so much! I am currently reading the Basics and Reference that you linked. I am trying to do what you describe here “If you are wanting a to go to a certain page like www.yourwebsite.com/pagenameURL automatically open a external page URL then do the other option in your page code.”

When I input the code I get this error "public/pages/fzlrq.js: Unexpected token, expected , (5:1) "

For this part of the code that you gave me, should it literally say ‘wix-location’ in my code or do I need to edit that to my specific page? Thanks again!

import wixLocation from 'wix-location';