Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Symptoms

The AssetUrlSelector class, and the Asset Picker dialog box returns an absolute URL in Microsoft SharePoint Server 2010. However, users expect to receive a relative URL.

Resolution

To resolve this issue, install the following update rollup:

2534412 Description of the SharePoint Foundation 2010 hotfix package (osrchwfe-x-none.msp): April 21, 2011

After you apply this hotfix package, the default behavior of SharePoint Server 2010 changes. SharePoint Server 2010 now returns a relative URL instead of an absolute URL. Additionally, if a selected link is in a different web application, SharePoint Server 2010 still returns an absolute URL. However, if you want to restore the previous behavior of SharePoint Server 2010, set the returnAbsoluteUrl property of AssetPicker configuration element under the SharePoint section to True.


Note The following code shows this section that is located in the web.config file.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<configuration>
<configSections>
<sectionGroup name="SharePoint">
[…]
<section name="AssetPicker" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
[…]
<SharePoint>
[…]
<AssetPicker returnAbsoluteUrl="true" />
</SharePoint>
[…]
</configuration>

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×