I've ended up getting an answer on stackOverflow, heere's the solution:
From the code source, route method generate an absolute URL by default, you may set it to false:
<a href="{{ URL::route('dashboard-get',array(),false) }}">Dashboard</a>
Update
You can also define your own custom links by
HTML::macro('Rlinks',function($routeName,$parameters = array(),$name){
return "<a href=".substr(URL::route($routeName,$parameters,false), 1) .">"
.$name.
"</a>";
});
Then call your macro
{{ HTML::Rlinks('dashboard-get',array(),'Dashboard') }}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community