Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing Jhipster/Angular landing page from home.html to login.html

There is a modal login.html in jhipster generated project. As landing page, home.html comes up first as default. Is there any configuration point to change the landing page? How can I set login.html as landing page?

like image 589
fatCop Avatar asked Jan 21 '26 19:01

fatCop


1 Answers

Change code in home.state.js as authorities and url so u can redirect to login.html

$stateProvider.state('home', {
                parent: 'app',
                url: '/home',
                data: {
                    authorities: ['ROLE_USER'],
                },
                views: {
                    'content@': {
                        templateUrl: 'app/home/home.html',
                        controller: 'HomeController',
                        controllerAs: 'vm'
                    }
                }
            }
like image 101
Geetanjali Jain Avatar answered Jan 24 '26 10:01

Geetanjali Jain



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!