Get your own customer support community
 

Specifying only idcomments_post_url causing problems

A bit of background: our CMS (Plone) will sometimes append '/view' or '/document_view' to a url when viewing a html page. I modified the IntenseDebate script a bit to remove those offending appends using the following:

[script]
var idcomments_acct = 'my-acct-#-goes-here';
var idcomments_post_id;

// Plone sometimes appends '/view' and '/document_view' to content items
// this will cause problems w/ intensedebate if we don't remove them!
var url = "http://" + location.hostname + location.pathname;
var view = "/view";
var document_view = "/document_view";
var idcomments_post_url = url.replace(view, "").replace(document_view, "");
[/script]

From my understanding, any posts that were made to a url containing '/', '/view', or '/document_view' should show up under '/'. Last month when I enabled comments on our site AdvancedAquarist.com using this modification, this modification worked without problems. I could post a comment to any of the following urls and the comments would show up properly under the http://www.advancedaquarist.com/2009/... url:

http://www.advancedaquarist.com/2009/...
http://www.advancedaquarist.com/2009/...
http://www.advancedaquarist.com/2009/...

Today I noticed that people were commenting on articles and they were showing up only on urls that had '/view' in them. Here's an example:

http://www.advancedaquarist.com/2008/...
http://www.advancedaquarist.com/2008/...

Notice that this is the same article only with '/view' appended to the url. Also notice that there's two completely different comments at the end of the article. Based on my javascript modification above, this should not be happening but it is. Last month this was not an issue as I had tested it with all three url combinations and it showed the posts properly.

Any idea what's going on?

Shane
 
sad I’m confused and frustrated.
Inappropriate?
1 person has this question

User_default_medium