Needs work
Project:
Disqus
Version:
6.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2011 at 14:40 UTC
Updated:
8 Jan 2012 at 06:05 UTC
Jump to comment: Most recent file
disqus_link calls url as:
$path = url("node/$node->nid", array(
'alias' => TRUE,
'absolute' => TRUE,
));
Docs: http://api.drupal.org/api/drupal/includes--common.inc/function/url/6
This tells url that you are passing it a already aliased url "node/nid" is not aliased so it skips pieces of url processing. If you have a module that makes use of url processing like purl then the incorrect url is used. FYI this has no bearing on the "global redirect" or "i want comments to link to xxx discussions previously.
Thanks,
Richard Brandon
Patch Attached
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1376162-2.patch | 641 bytes | rbrandon |
Comments
Comment #1
rbrandon commentedPatch:
Comment #2
bkosborneI believe the reason this was done was to prevent the alias being reported over to Disqus. Every effort is made to use node paths without aliases when passing info off to Disqus, so that if URLs happen to change, the comments are retained.
I agree that this is probably not the best way to do it, but we don't want to pass the alias off. Do you have an example of this breaking PURL or other implementations?
Comment #3
robloachThis is fixed in the Drupal 7 branch, but should be ported back... The link should have a data-disqus-identifier attribute with the system path (node/3), but have the correct aliased href.