Post.PermaLink not correct

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

Hi,

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:

http://blog.marcduerst.com/post/Tauchkurs-ISE-e2809cBasic-of-Exploratione2809d.aspx

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

http://blog.marcduerst.com/post.aspx?id=23f2101f-d991-4b09-a726-cd74de7ae09b

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.

Cheers,
Marc

Coordinator
Nov 28, 2010 at 6:58 PM

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

Post.PermaLink

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

Nov 29, 2010 at 6:58 PM

Thanks Ben,

Post.AbsoluteLink was what I was looking for.

Cheers,
Marc