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
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.
Search for <returnurl>.
In the current entry, select the portion of the URL that is changing, and then type the new value.
Save and close the Web.config file.
If you have not already done so, change the application URL to match the new value of the return URL.