Posted by czarphanguye on July 6, 2008 at 1:33pm
| Project: | Disqus |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
(Noticed this by mistake, yet I would classify it as a critical issue.)
Using clean-urls, pathauto, and disqus I'm starting to experience fragmentation of comments (on the same node.)
Example of same node fragment:
http://czarism.com/node/1458 Vs. http://czarism.com/kwippy-is-a-micro-blog-w-im
http://czar.disqus.com/kwippy_is_a_micro_blog_w_im_48/ Vs. http://czar.disqus.com/kwippy_is_a_micro_blog_w_im_63/
Other then being obsessive about what uri people link-back OR what path I'm on when posting, what is the next action...
Regards,
Czar
Comments
#1
Very true! The isssue is disqus_url. You're suppose to set it to an absolute URL of the post. This is quite easy to do, unless your domain changes, or your website is hosted on multiple domains. It also causes a problem when you're experiencing what you're doing, where the path to the content can change....
I brought it up a while ago on the Disqus forum here and it doesn't look like they made much progress. I guess the easiest solution here is to use:
disqus_url = 'http://example.com/node/nid';... Because then even if you change the path, it will still be using the node ID. Once Disqus fixes the disqus_url problem, we could adapt to their solution. Thanks for bringing this up. I wouldn't of experienced it because I'm not using the Path module on my site.
#2
Reported a comment: http://disqus.disqus.com/disqus_url/?826500#comment-826500
#3
Need their new API.
#4
Im not sure if you want to mark http://drupal.org/node/343363 as a duplicate.
#5
I'm looking at using the Disqus module and was concerned about this. But I happen to have the Global Redirect module enabled and if someone tries to go to node/# it will redirect to the pathauto URL. So that might be a fix, at least temporarily?
Global Redirect project page: http://drupal.org/project/globalredirect
You can test it on my site:
http://throk.net/blog/601/today-friday
http://throk.net/node/601
I'm setting this to patch code (needs review) b/c while it's not a fix, it's sort of a solution...
#6
would be less of an issue if I could divine the pathauto url in the view to build the Disqus URL around...
#7
You can wrap a 'node/[nid]' path in a url() call and it'll sort out the appropriate pathauto url...
Note that you need to pass in the relative url, not the absolute url. Something like this should work:
<?php$clean_url = url('node/' . $node->nid);
?>
#8
I'd rather not pass the PathAuto's or Path's node URL since that path can change. We should pass the node ID instead because that doesn't change. The Disqus URL can be a relative path? Here it is with relative node/nid.
#9
This should be long fixed.
#10
Automatically closed -- issue fixed for 2 weeks with no activity.