Bug in Link to default view Task list in TaskWFCT.aspx

Sep 9, 2009 at 10:59 AM

Hi there. With pleasure I used this Collect Feedback workflow. Though I've spotted a little bug.

In TaskWFCT.aspx (line 31) is some ASP.net code that displays the Title of the Task list with a link to the default view of the Task list. This link is not properly constructed.

<A tabindex="1"  id="onetidListHlink" HREF=""
     <% SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(List.DefaultViewUrl,true),Response.Output);%>>
     <%SPHttpUtility.HtmlEncode(List.Title,Response.Output);%>
   </A>: <% SPHttpUtility.HtmlEncode(m_taskName,Response.Output); %>

Because the AddQuote command already takes care of the quotation marks, the double quotes at the end of the first line are unnecessary. The code should look something like this:

<A tabindex="1"  id="onetidListHlink" HREF=<% SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(List.DefaultViewUrl,true),Response.Output);%>>
     <%SPHttpUtility.HtmlEncode(List.Title,Response.Output);%>
   </A>: <% SPHttpUtility.HtmlEncode(m_taskName,Response.Output); %>

Otherwise the link to the default view of the Task list points to the layouts folder.

That's it.

Later.