> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spurtest.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Web Link vs Domain

> When configuring Web URLs in your environments, you can choose between two types: Domain and Web Link. Understanding the difference helps you organize tests efficiently and maintain flexibility across your testing workflow.

## Domain

A **Domain** represents your main website or application root. Use domains when tests need to start from the homepage and then navigate across multiple pages.

<Frame>
  <img src="https://mintcdn.com/spur/H3xqe3VyV7YeO-e5/images/Screenshot2026-02-05at1.10.51PM.png?fit=max&auto=format&n=H3xqe3VyV7YeO-e5&q=85&s=aaa0f91cd7f53c049986e6374478d068" alt="Screenshot2026 02 05at1 10 51PM" width="1816" height="502" data-path="images/Screenshot2026-02-05at1.10.51PM.png" />
</Frame>

When you reference this domain in a test, the Spur Agent starts at the root URL and can navigate to any page within the site.

## Web Link

A **Web Link** refers to any specific page or URL within your application. Use web links when tests focus on particular pages or features without requiring homepage navigation.

<Frame>
  <img src="https://mintcdn.com/spur/H3xqe3VyV7YeO-e5/images/Screenshot2026-02-05at1.11.50PM.png?fit=max&auto=format&n=H3xqe3VyV7YeO-e5&q=85&s=2bf6f0fdffab13b89b2fa9634a4e56e2" alt="Screenshot 2026 02 05 At 1 11 50 PM" width="1798" height="492" data-path="images/Screenshot2026-02-05at1.11.50PM.png" />
</Frame>

When you reference this web link in a test, the Spur Agent starts directly at that specific URL.

## Choosing Between Domain and Web Link

<Columns cols={2}>
  <Card title="Use Domain when:">
    * Tests need to start from the homepage
    * You're testing navigation flows
    * Tests span multiple sections of your site
    * You want flexibility to navigate anywhere from the root
  </Card>

  <Card title="Use Web Link when:">
    * Tests focus on a specific page or feature
    * You need to test deep-linked pages directly
    * Starting from a particular URL saves time
    * Testing isolated page functionality
  </Card>
</Columns>

## Environment Configuration

Within each environment, you can configure multiple domains and web links to cover all testing scenarios. This allows you to maintain separate URLs for staging and production while keeping test logic consistent.

<Frame caption="Example Evironment Setup">
  <img src="https://mintcdn.com/spur/H3xqe3VyV7YeO-e5/images/Screenshot2026-02-05at1.19.14PM.png?fit=max&auto=format&n=H3xqe3VyV7YeO-e5&q=85&s=1eb4dd626b7a7ca0560f37fd05bbf0f5" alt="Screenshot2026 02 05at1 19 14PM" width="1310" height="442" data-path="images/Screenshot2026-02-05at1.19.14PM.png" />
</Frame>

<Tip>
  Need to temporarily test against a different URL (like a deploy preview) without changing your environment settings? Use [Override URLs](/running-tests/cicd/override-urls) to redirect at runtime.
</Tip>
