# Login as First Page

This section explains how to set the Login page as the default starting page, skipping the landing page, for cases where it is not needed.

* Update the code at route ***full-version/src/app/page***

{% tabs %}
{% tab title="NEXT (TS)" %}
{% code title="src/app/page.tsx" %}

```typescript
  // project-imports
  import GuestGuard from 'utils/route-guard/GuestGuard';
  import LoginPage from 'app/(auth)/login/page';
  
  export default function Login() {
    return (
      <GuestGuard>
        <LoginPage />
      </GuestGuard>
    );
  }
```

{% endcode %}
{% endtab %}

{% tab title="NEXT (JS)" %}
{% code title="src/app/page.jsx" %}

```javascript
// project-imports
import GuestGuard from 'utils/route-guard/GuestGuard';
import LoginPage from 'app/(auth)/login/page';

export default function Login() {
  return (
    <GuestGuard>
      <LoginPage />
    </GuestGuard>
  );
}
```

{% endcode %}
{% endtab %}
{% endtabs %}


---

# 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://phoenixcoded.gitbook.io/able-pro/nextjs/how-to/login-as-first-page.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.
