Set the return URL for a claims-aware application

Applies To: Windows Server 2003 R2

The return Uniform Resource Locator (URL) in Active Directory Federation Services (ADFS) that you configure in the ADFS Web Agent on a Web server reflects the URL that opens a requested Web application. If this URL changes for a claims-aware application, you must change its value in the Web.config file.

The return URL must match the application URL that you configure in the properties of the application in the resource Federation Service. Therefore, if you change one, you must change the other.

Administrative credentials

To complete this procedure, you must have read-write access to the Web.config file.

To set the return URL for a claims-aware application using the Web.config file

  1. In Notepad or other text editor, open the Web.config file that is in the Web application directory (typically \Inetpub\wwwroot\ApplicationName) on the Web server.

  2. Search for <returnurl>.

  3. In the current entry, select the portion of the URL that is changing, and then type the new value.

  4. Save and close the Web.config file.

  5. If you have not already done so, change the application URL to match the new value of the return URL.

See Also

Concepts

Set the application URL for an application