using wixLocation to go to a dynamic page

Is it possible to use wixLocation to redirect people to a confirmation page that is generated from the user form they just submitted? If so, how would I reference the page? Thank you in advance