{"action":"created","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2965","repository_url":"https://api.github.com/repos/jhipster/generator-jhipster","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2965/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2965/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2965/events","html_url":"https://github.com/jhipster/generator-jhipster/issues/2965","id":135631852,"number":2965,"title":"set html5 mode as default","user":{"login":"deepu105","id":1107223,"avatar_url":"https://avatars.githubusercontent.com/u/1107223?v=3","gravatar_id":"","url":"https://api.github.com/users/deepu105","html_url":"https://github.com/deepu105","followers_url":"https://api.github.com/users/deepu105/followers","following_url":"https://api.github.com/users/deepu105/following{/other_user}","gists_url":"https://api.github.com/users/deepu105/gists{/gist_id}","starred_url":"https://api.github.com/users/deepu105/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepu105/subscriptions","organizations_url":"https://api.github.com/users/deepu105/orgs","repos_url":"https://api.github.com/users/deepu105/repos","events_url":"https://api.github.com/users/deepu105/events{/privacy}","received_events_url":"https://api.github.com/users/deepu105/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jhipster/generator-jhipster/labels/needs-discussion","name":"needs-discussion","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-02-23T04:42:50Z","updated_at":"2016-03-02T10:04:27Z","closed_at":null,"body":"As part of 3.0 should we set `$locationProvider.html5Mode(true);` for angular urlmode\r\n\r\nwe already have a tip for this http://jhipster.github.io/tips/010_tip_configuring_html_5_mode.html\r\n\r\nIt seems that this mode is better for SEO and analytics what do you guys think?\r\n\r\n@brevleq you wrote the tip any comments on this?"},"comment":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/comments/191167420","html_url":"https://github.com/jhipster/generator-jhipster/issues/2965#issuecomment-191167420","issue_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/2965","id":191167420,"user":{"login":"wmarques","id":1577727,"avatar_url":"https://avatars.githubusercontent.com/u/1577727?v=3","gravatar_id":"","url":"https://api.github.com/users/wmarques","html_url":"https://github.com/wmarques","followers_url":"https://api.github.com/users/wmarques/followers","following_url":"https://api.github.com/users/wmarques/following{/other_user}","gists_url":"https://api.github.com/users/wmarques/gists{/gist_id}","starred_url":"https://api.github.com/users/wmarques/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmarques/subscriptions","organizations_url":"https://api.github.com/users/wmarques/orgs","repos_url":"https://api.github.com/users/wmarques/repos","events_url":"https://api.github.com/users/wmarques/events{/privacy}","received_events_url":"https://api.github.com/users/wmarques/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T10:04:27Z","updated_at":"2016-03-02T10:04:27Z","body":"I've found a solution on[ this guide](https://spring.io/blog/2015/05/13/modularizing-the-client-angular-js-and-spring-security-part-vii), but I don't know in which file I have to implement it, or if I have to create a new file, where I should put it in the project. For the moment I put it in config package and it seems to work. But as mentioned in the tip, /health and /monitoring routes have to be renamed.\r\n\r\n```\r\n@Controller\r\npublic class AngularJSForwardController {\r\n    @RequestMapping(value = \"/{[path:[^\\\\.]*}\")\r\n    public String redirect() {\r\n        return \"forward:/\";\r\n    }\r\n}\r\n```"}}