marmelab / ng-admin

Add an AngularJS admin GUI to any RESTful API
http://ng-admin-book.marmelab.com/
MIT License
3.94k stars 725 forks source link

Unable to supress the url while using ng-admin #1039

Open jslearner07 opened 8 years ago

jslearner07 commented 8 years ago

Hi,

I am unable to suppress the url using ng-admin. # appears in the url whenever I use ng-admin dashboard. This is giving issues in our application. Hence I used the below

myApp.config(['$routeProvider', '$locationProvider',
        function($routeProvider, $locationProvider) {
                $locationProvider.html5Mode(true);
    }
]);

But now its not firing the rest calls to fetch the posts. Any solution please advice

jefbarn commented 8 years ago

I was looking into this too, seems like ng-admin/src/javascripts/ng-admin/Main/view/menuBar.html has it hard-coded with the #hash

jpetitcolas commented 8 years ago

@jslearner07: if I understand it well, you want to be able to redirect user to another page, outside ng-admin? Indeed, we should be able to specify an URL instead of an anchor.