Create link to mydomain/Blog with Html.RouteLink

Jan 20, 2009 at 7:48 PM
How should a link in the header look like if I want to url to look like mydomain/blog?
I have tried it like this but the href empty.
<li<%= controller == "Area" && string.Compare(pagePath, "blog", true) == 0 ? selected : string.Empty %>><%= Html.RouteLink(Localize("Blog"), "Area", new { pagePath = "Blog" }) %></li>
Jan 20, 2009 at 7:51 PM
Edited Jan 20, 2009 at 7:53 PM
This would work...

<%=Html.Link("My Blog", "") %>
Jan 20, 2009 at 7:53 PM
That was easy! :) ...
Thanks for the help
Jan 20, 2009 at 7:55 PM
Er...wait, do you mean you want it to just be an absolute path to a blog in your Oxite app?

Explain more.  :)
Jan 20, 2009 at 7:56 PM
np.  If that's not what you were really looking for let me know.
Jan 20, 2009 at 8:00 PM
I don't want the blog articles on the startpage, so by adding a link to the menu with /blog as the url it's solved I think?
Jan 20, 2009 at 9:13 PM
Well, showing something different for the homepage is something different.  You would probably just want to change the home page view with whatever you wanted instead of the list of posts (if I'm understanding you correctly).
Jan 20, 2009 at 9:45 PM
Yes exaxtly.