Link to home
Start Free TrialLog in
Avatar of CptO
CptOFlag for United States of America

asked on

Sharepoint 2010 incorrectly renders @fileref tag

I am in the process of testing a migration from 2007 to 2010.  I have a lot of DVWP's that use <a href="{@fileref}"><xsl:value-of select="@Title" /></a> to link back to the document or aspx redirect page in the document library.
In SP 2007 @fileref resolves to "/sites/YourSite/YourSubSite/Document Library/DocumentName"
In SP 2010 this resolves as "sites/YourSite/YourSubSite/Document Library/DocumentName" . Note the missing forward slash at the beginning of the URL.

I have seen several ways to fix this ( see links below) , such as concatenating a "/" before @fileref, but all of them require going to each dvwp and manually changing the HREF code after the migration. Doing it before the migration breaks the link in 2007.

Suggested Solution #2

Suggested Solution #1

Is there a way to fix on the SP 2010 server  instead of each DVWP in the site?
Avatar of quihong
quihong
Flag of United States of America image

"They have also said that you have to add it manually as there is no way to fix this issue on a global scale."

Looks like someone already got the answer from MS.
Avatar of CptO

ASKER

Yep I saw that. However Microsoft support said that. One thing I have learned is that there is a lot of end users that know more than MS support, and frequently come up with solutions when MS can't.
ASKER CERTIFIED SOLUTION
Avatar of CptO
CptO
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CptO

ASKER

End users did not have any suggested solutions.