Update Router to fall back to full page load (i.e. Rails) when a route
is not matched on the client-side.
Also update Router paths/params correspondingly.
Task # 8869
Signed-off-by: Alex Coles <alex@alexbcoles.com>
// Note: Not using this because we want to use $location to get the url params and html5Mode prevents all the links from working normally.
// $locationProvider.html5Mode(true);
$locationProvider.html5Mode(true);
$httpProvider.defaults.headers.common['X-CSRF-TOKEN']=jQuery('meta[name=csrf-token]').attr('content');// TODO find a more elegant way to keep the session alive