---
title: Enable Fragment Redirect
description: A flag to manage the browser's URL fragment during authentication, as follows:
component: web-agents
version: 2025.11
page_id: web-agents:properties-reference:org.forgerock.agents.config.fragment.redirect.enable
canonical_url: https://docs.pingidentity.com/web-agents/2025.11/properties-reference/org.forgerock.agents.config.fragment.redirect.enable.html
---

# Enable Fragment Redirect

A flag to manage the browser's URL fragment during authentication, as follows:

* `false`: Remove the browser's URL fragment during authentication. For example, a request to `http://my.domain.com:8080/myapp/index.html#chapter-1` is authenticated and redirected to `http://my.domain.com:8080/myapp/index.html`. The fragment `#chapter-1` is lost.

* `true`: Save the browser's URL fragment during authentication. For example, a request to `http://my.domain.com:8080/myapp/index.html#chapter-1` is authenticated and redirected to the same URL. The fragment is not lost.

An extra redirect is incurred for all unauthenticated requests, to capture and process the URL fragment.

Fragment redirect is not possible for request URLs marked for JSON responses, usually for non-browser clients, such as JavaScript or other coded clients.

Default: `false`

|                    |                                                                                      |
| ------------------ | ------------------------------------------------------------------------------------ |
| Property name      | `org.forgerock.agents.config.fragment.redirect.enable`   Introduced in Web Agent 5.7 |
| Function           | Fragment redirect                                                                    |
| Type               | Boolean: `true` returns true; all other strings return `false`.                      |
| Bootstrap property | Yes                                                                                  |
| Required property  | No                                                                                   |
| Restart required   | No                                                                                   |
| AM console         | Tab: `Advanced (From AM 7)`Title: `Enable Fragment Redirect`                         |
