<div dir="ltr"><div>I am trying to learn dancer and have run across the following problem. In my starter app after a user logs in I want to send them to a welcome page. For now I am just trying to send them back to the index page. However, I am having problems doing so with the following syntax. <br><br></div>I get:<br><h1>Error 404 - Not Found</h1>
<div id="content">
/index
</div>
<div id="footer">
Powered by <a href="http://perldancer.org/">Dancer2</a> 0.161000<br><br></div><div id="footer">Am I going about this the wrong way or is redirect the way to go and if so what would be the proper syntax to make redirect work?<br><br></div><div id="footer">Thanks<br></div><br><br><div><br> if ( passphrase( $input_hash->{Pswd} )->matches( $ctsn ) ) {<br><br> redirect '/index';<br><br> } else {<br><br> return "Incorrect Unsername of Password\n";<br><br> }<br></div></div>