---
title: Goto URL
description: When Authentication Fail URL is not set, this property sets the URL or URI to which the agent redirects the user after a failed authentication. If neither property is set, the agent returns an HTTP 400 Bad Request.
component: java-agents
version: 2025.11
page_id: java-agents:properties-reference:org.forgerock.agents.default.goto.url
canonical_url: https://docs.pingidentity.com/java-agents/2025.11/properties-reference/org.forgerock.agents.default.goto.url.html
---

# Goto URL

When [Authentication Fail URL](org.forgerock.agents.authn.fail.url.html) is not set, this property sets the URL or URI to which the agent redirects the user after a failed authentication. If neither property is set, the agent returns an HTTP 400 Bad Request.

To configure the agent to send the reason for authentication failure in a named query parameter, configure [Authentication Fail Reason Parameter Name](org.forgerock.agents.authn.fail.reason.parameter.name.html).

|                          |                                                                                                                                                                                                                                            |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Property name            | `org.forgerock.agents.default.goto.url`                                                                                                                                                                                                    |
| Aliases                  | `com.sun.identity.agents.config.openam.agent.default_goto_url`   Introduced in Java Agent 5.0   [Recognized](preface.html#how_am_manages_multiple_aliases) from AM 7`org.forgerock.agents.default.goto.url`   Introduced in Java Agent 5.7 |
| Function                 | Authentication failure                                                                                                                                                                                                                     |
| Type                     | String                                                                                                                                                                                                                                     |
| Bootstrap property       | No                                                                                                                                                                                                                                         |
| Required property        | No                                                                                                                                                                                                                                         |
| Restart required         | No                                                                                                                                                                                                                                         |
| Local configuration file | `AgentConfig.properties`                                                                                                                                                                                                                   |
| AM console               | Tab: `Miscellaneous (from AM 7)`Title: `Goto URL`                                                                                                                                                                                          |
