I'm following the documentation to create a thank-you page when the user submits the form.
I have a single created for
/contact-us/ and I want the user to be redirected to
/contact-us/thank-you/ when they submit the form.
I have created the route so
contact-us/thank-you shows the
contact-us template, but when I go to that URL I get a template error saying
Variable "entry" does not exist.
So it looks like it's showing the template correctly, but not loading the data from the single.