While I was playing around with Concrete 5.6.2.1 CMS, I wanted to know how this application shows us a hyperlink to the “Back” button. I found something interesting in the “download_file.php” file.
\concrete\single_pages\download_file.php
line 27
<form action="<?php echo View::url('/download_file', 'submit_password', $fID) ?>" method="post"> <?php if(isset($force)) { ?> <input type="hidden" value="<?php echo $force ?>" name="force" /> <?php } ?> <input type="hidden" value="<?php echo $returnURL ?>" name="returnURL" /> <input type="hidden" value="<?php echo $rcID ?>" name="rcID"/> <label for="password"><?php echo t('Password')?>: <input type="password" name="password" /></label> <br /><br /> <button type="submit"><?php echo t('Download')?></button> </form>
Let’s have a look at the “$returnURL” variable. (more…)