Post.PermaLink not correct

Topics: Themes
Nov 28, 2010 at 7:55 AM


I'm working on integrating Facebook stuff on my blog and found that in PostView.aspx the property Post.PermaLink does not match the "real" SEF url that is used by the blog.

For example the blog show a post on the URL:

but Post.PermLink for the same post/page show:

Is this a known issue or are I am doing things wrong? How can I get the first, search engine friendly URL for the given post within the theme code for PostView.aspx?
Btw: I am using version 1.6.1.

Thanks for help.


Nov 28, 2010 at 5:58 PM

It's probably coming from PostView.ascx in your theme's theme folder.  In the Standard theme's PostView.ascx, it has:


You can change that to either Post.RelativeLink or Post.AbsoluteLink.

Nov 29, 2010 at 5:58 PM

Thanks Ben,

Post.AbsoluteLink was what I was looking for.