AEM sightly: redirect to new page on button click
Hi All,
I'm trying to a contact us component. It will provide the button, when the user clicks on the button, he will be redirected to the contact us page. I've added input button and trying to redirect to contact us page when the user clicks on the button, but it's not redirecting to the new page.
Sample code:
<div data-sly-test.myPath="/content/geometrixx/en/contactus" data-sly-unwrap></div>
<input type="Submit" onclick="location.href='${myPath}'" value="Contact Us" />
Please correct me i'm wrong.
Thanks in Advance
