Hey Tuan, thank you for your reply.
I tried what you suggested before as well but its not exactly what I need. Let me post images to explain what I would like to happen.
image1.png - So when you are on the page shown in image1.png, you click View List and you get to what is shown in image2.png. The solution you suggested, instead, brings the user to image3.png. What I would like is, if possible, to bring the user back to image2.png so they can continue to assign grades.
I am not entirely sure on how getViewRoute works. The line that controls the behavior of View List (from image1.png) is in /event/tmpl/default.php:
Code:
<a href="index.php?option=com_eventbooking&view=registrantlist&id=<?php echo $item->id ?>&tmpl=component" class="eb-colorbox-register-lists"><span class="view_list"><?php echo JText::_("EB_VIEW_LIST"); ?></span></a>
Following that line, I have managed to achieve what I wanted temporarily by getting the event_id (with $event_id = JRequest::getVar('event_id', ''); ) and doing the following:
Code:
$this->setRedirect(JRoute::_("index.php?option=com_eventbooking&view=registrantlist&id=$event_id &tmpl=component"));
I am not sure if this is a viable solution so I'd appreciate it if you could suggest something better if it exists.
Thank you for all your replies so far.