Hi there,
I noticed in a few sites of ours that friendly URLs aren't generated for hrefs that set up with single quotes. In other words, this:
@{
string url = item.GetString("ItemPublisher:Item.DetailsUrl.PID");
<a href='@url'>Click</a>
}
ends up as something like href='Default.aspx?ID=123'
whereas this:
@{
string url = item.GetString("ItemPublisher:Item.DetailsUrl.PID");
<a href="@url">Click</a>
}
leads to this: href="friendly/name/of/page"
Is this by design or should this work? Sometimes it's easier to work with the single quotes in Razor scenarios. (I do realize that we can work around it using \" in Razor; it's just something that developers don't always seem to do).
Thanks,
Imar