You should really consider naming the route. Laravel offers an option to avoid this happening by allowing you to set a constant name for your routes.
For example:
Route::get('/main.php?eid={id}', array(
'as' => 'main.page',
'uses' => 'PageController@someMethod'
));
Using this extra value with the key 'as', you can then direct users to the same route, regardless of the url from anywhere in your logic.
e.g.
public function someOtherMethod($id)
{
return Redirect::to('main.page')->with('id', $id);
}
Let me know if this helps!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community