My template contains this file reference:
<a href="../../racing/calendar/eventDetail.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "ID=" & rsdistrictEvents.Fields.Item("ID").Value %>" target="_blank" class="magenta"><%=(rsdistrictEvents.Fields.Item("regatta").Value)%>< /a></td>
When applying the template, this is what happens:
<a href="file:///C|/inetpub/racing/calendar/eventDetail.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "ID=" & rsdistrictEvents.Fields.Item("ID").Value %>" target="_blank" class="magenta"><%=(rsdistrictEvents.Fields.Item("regatta").Value)%>< /a></td>
Why is the href resolving to file:///C/inetpub/ ? I there a way to correct this problem?
file:///C|/inetpub/racing/calendar/
Is that the path to your local root folder as stated in your site definition?
Is there a clue there?
Yes.
I did exactly that and got the same result.
Your link is this -
When applying the template, this is what happens:
<a href="file:///C|/inetpub/racing/calendar/eventDetail.asp
DW thinks that this file is NOT IN THE LOCAL ROOT FOLDER, so it makes the kind of link that allows it to work with files that are outside of your site. This almost always means that your site is not defined properly. In your site definition, what is the path to your local root folder?
Thank you for your response. I know it appears to be that simple, but that is not the problem. The template contains over a dozen links, and they all resolve as they should. Only the one I referenced does not. I tried everything I could think of, but the only thing that solved the problem was to move the code into each individual page. Don’t know if this is a bug, but I couldn’t spend any more time on it.
North America
Europe, Middle East and Africa
Asia Pacific