Home URL Rendered with backslash

Last post 09-02-2008 2:46 AM by hesed4him. 0 replies.
Page 1 of 1 (1 items)
  • Home URL Rendered with backslash

    09-02-2008 2:46 AM

    consider the following loop:

    #foreach($link in $macros.NavigationLinks())
        <a href="$link.Url">$link.Text</a> |
    #end

    When $link.Text is "Home", the returned URL is "\".  This is ignored in IE, but Firefox returns 503 when the link is clicked on.

    Therefore, I'm currently having to use the following code:

    #foreach($link in $macros.NavigationLinks())
      #if ($link.Text == "Home")
        <a href="/">Home</a> |
      #else
        <a href="$link.Url">$link.Text</a> |
      #end
    #end

     

Page 1 of 1 (1 items)