Eliminating error: "no route passed"

Hello everyone, I come to share with you an issue that I did in my code Virtual Air Lines, this code snippet will remove the error: “_ no route passed _”.

Hope that is useful to the community!

First in: /core/modules/Schedules/Schedules.php search for:

public function addbid()
{

inside this function search for the variable: $routeid = $this->get->id** ;**

Replace the variable above for: $routeid = $_GET[‘bid’]****;

Then search for the file: /core/templates/schedule_results.tpl open this file and search for:

<a id="<?php echo $route->id; ?>" class="addbid" 
href="<?php echo url('/schedules/addbid');?>">Add to Bid</a>

Replace the above code by:

<a id="<?php echo $route->id; ?>" class="addbid"
href="<?php echo actionurl('/Schedules/addbid?bid='.$route->id);?>" target="_blank">Add to Bid</a>

And voila, you will no longer see the error: " no route passed".

I hope this tutorial has been helpful to the community!!!

You still have the issue that has caused the “No Routes Passed”. In most cases that error issue will also effect the schedules. Just put your js in the correct order.

You still have the issue that has caused the “No Routes Passed”. In most cases that error issue will also effect the schedules. Just put your js in the correct order.

This solution worked for me.

You are not getting the point. If you are getting the error, you still have a problem with the js. The reason you are getting the error in the first place.

You are not getting the point. If you are getting the error, you still have a problem with the js. The reason you are getting the error in the first place.

I got you. Thanks for the feedback, I thought it would work. this code works for me yes. There is NO error with this code.

You still have the issue that has caused the “No Routes Passed”. In most cases that error issue will also effect the schedules. Just put your js in the correct order.

Normally I can over come this issue in my skins but have one I am having trouble with. By correct order, exactly what do you mean? It always seems to be the <script src=“<?php echo SITE_URL?>/path/js/jquery.min.js”></script> that causes me problems, because once I remove it when looking for the file the No Routes Passed error goes away but so does the function of the javascript.

Any ideas on particular order of you speak?

Thanks for your help!

Worked for me too. Thanks.