# Remove Authentication

This section explains how to bypass the login page and go directly to the dashboard page.

1. Update route at: **src/app/app-routing.module.ts**

{% code title="src/app/app-routing.module.ts" %}

```typescript
// Angular Imports
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

// project import
import { AdminLayout } from './theme/layout/admin-layout/admin-layout.component';
import { GuestLayouts } from './theme/layout/guest-layout/guest-layout.component';
// import { AuthGuardChild } from './theme/shared/components/_helpers/auth.guard';
import { Role } from './theme/shared/components/_helpers/role';

const routes: Routes = [
 
    {
      path: '',
      component: GuestLayouts,
      children: [
         ....
     
        {
          path: 'auth',
          // canActivateChild: [AuthGuardChild],
          loadChildren: () => import('./demo/pages/authentication/authentication.module').then((m) => m.AuthenticationModule),
          data: {
            roles: [Role.Admin, Role.User]
          }
        },
        {
          path: 'maintenance',
          // canActivateChild: [AuthGuardChild],
          loadChildren: () => import('./demo/pages/maintenance/maintenance.module').then((m) => m.MaintenanceModule),
          data: {
            roles: [Role.Admin, Role.User]
          }
        }
      ]
    },
    {
        path: '',
        component: AdminComponent,
        // canActivateChild: [AuthGuardChild], <!-- Commented to AuthGuardChild -->
        children: [
           ....
        ]
     },
    ...
]

```

{% endcode %}

2. Changed the navigation path from the landing page to the login page, to now redirect from the landing page to the dashboard page.

{% code title="src/app/demo/pages/landing/landing.component.html" %}

```typescript

Form:
​
    <a [routerLink]="['/login']" class="btn btn-primary live-btn" target="_blank">
       <i class="me-1" antIcon theme="outline" type="eye"></i>
        Live Preview
    </a>
​
To:
 
    <a [routerLink]="['/dashboard/default']" class="btn btn-primary live-btn" target="_blank">
       <i class="me-1" antIcon theme="outline" type="eye"></i>
        Live Preview
    </a>
​
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://codedthemes.gitbook.io/gradient-able-angular/how-to/remove-authentication.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
