|
Home > Archive > Microsoft Content Management Server > September 2005 > incorrect url for a posting
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
incorrect url for a posting
|
|
| Chandy 2005-09-21, 7:48 am |
| Hi all,
I have a simple search indexer which goes through the channel structure
and indexes postings. I store Posting.Url as the reference to later
use as a link to the live posting but for some reason *1* of the
postings (can only find the one!) seems to have returned an incorrect
url! For this posting, the Url appears to be of the format
/TemplateProject/TemplateDir/GUIDFRAGMENT.htm
Any ideas as to what might be causing this?
Chandy
| |
| Stefan [MSFT] 2005-09-21, 7:48 am |
| Hi Chandy,
I would suggest to debug your code to see what is really returned from
posting.Url.
I don't think that the API will return the path below.
A debugger would proof this.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
"Chandy" <chandy@totalise.co.uk> wrote in message
news:1127294144.827170.148680@f14g2000cwb.googlegroups.com...
> Hi all,
>
> I have a simple search indexer which goes through the channel structure
> and indexes postings. I store Posting.Url as the reference to later
> use as a link to the live posting but for some reason *1* of the
> postings (can only find the one!) seems to have returned an incorrect
> url! For this posting, the Url appears to be of the format
> /TemplateProject/TemplateDir/GUIDFRAGMENT.htm
>
> Any ideas as to what might be causing this?
>
> Chandy
>
| |
| Chandy 2005-09-21, 7:48 am |
| Hi Stefan,
Upon further investigation it seems that for the posting in question
the Url property does not return 'http://site/channel/posting.htm' as
for all the rest of the postings but '/NR/exeres/GUID.htm' (this is on
Enterprise Edition with host header mapping enabled). Why would
this be? Is it a CMS bug that it is not returning the domain part of
the url?
Chandy
| |
| Stefan [MSFT] 2005-09-21, 5:52 pm |
| Hi Chandy,
this is as expected if more than one posting in a channel have the same
name.
Please ensure that all postings have unique names and this should not
happen.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
"Chandy" <chandy@totalise.co.uk> wrote in message
news:1127305993.662194.222750@f14g2000cwb.googlegroups.com...
> Hi Stefan,
>
> Upon further investigation it seems that for the posting in question
> the Url property does not return 'http://site/channel/posting.htm' as
> for all the rest of the postings but '/NR/exeres/GUID.htm' (this is on
> Enterprise Edition with host header mapping enabled). Why would
> this be? Is it a CMS bug that it is not returning the domain part of
> the url?
>
> Chandy
>
|
|
|
|
|