the links produced is of the type
node/123
and does not provide the correct alias for that node
thus creating duplicate url which can hurt a site with duplicate content penalty

there is a work around to install the http://drupal.org/project/pathfilter
module it still needs a hack to work seemlessly

Comments

tronathan’s picture

Assigned: Unassigned » tronathan
Status: Active » Closed (works as designed)

The decision to use absolute url's was made because a drupal administrator can make changes to pathauto settings and rebuild the URL alias table, breaking links. (Drupal.org uses absoute node references frequently for the same reason, I believe.)

Unless you can explain how it is not dangerous to use url aliases when those aliases may change, I'd like to call this Not A Bug and propose people use http://drupal.org/project/pathfilter as GiorgosK suggested.

mattez’s picture

Title: Should to produce node alias or use internal absolute url's? » should be made to produce correct node alias
Version: 6.x-2.0-beta4 » 6.x-1.0

Sorry but I'm using
Pathauto 6.x-2.x-dev
TinyMCE Node Picker 6.x-2.0-beta4

Non-Root Site: My Drupal installation is in server root subfolder, like www.mydomain.org/dev
and Node Picker insert links as their alias!
Whats up? It should insert internal relative path like "node/xy", isn't it?
Thanks!

mattez’s picture

Version: 6.x-1.0 » 6.x-2.0-beta4
Category: feature » support
Status: Closed (works as designed) » Active
mattez’s picture

Title: should be made to produce correct node alias » Should to produce node alias or use internal absolute url's?
mattez’s picture

Title: should be made to produce correct node alias » Should to produce node alias or use internal relative url's (node/xy)?
Version: 6.x-1.0 » 6.x-2.0-beta4

not absolute but relative path, sorry!

peter törnstrand’s picture

Assigned: tronathan » Unassigned
Status: Active » Postponed (maintainer needs more info)

I'm sorry but you have to explain exactly what you mean.

JGO’s picture

I think it should use the internal link in format node/nid instead of the alias!
When I select a node now, it's always taking the alias, as soon as the alias changes, the link will no longer work!

----------------------------
JGO | http://www.e2s.be
----------------------------

peter törnstrand’s picture

JGO: I understand that can be a problem. A better solution would be to allow integration with some kind of input filter that translates [link:node/nid] (for example) tokens to real paths on node load. To use the node/nid path is in my opinion not an option as that would produce "content duplication" that would hurt google ranking.

peter törnstrand’s picture

JGO: You could achieve the requested behavior by modifying the nodepicker_nodes view.

JGO’s picture

indeed, I just discovered that.
It works ok now! :)

Creating now an "internal:node/[nid]" link and using the path filter module. Works great these 2 modules together!

----------------------------
JGO | http://www.e2s.be
----------------------------

peter törnstrand’s picture

Superb. Do you think further support for integration with Path filter is necessary?

JGO’s picture

Not really I think atm, maybe you could give the user some options to create this with the configuration when path filter is detected.
But for me now I know the solution, it's easy enough though.

peter törnstrand’s picture

Assigned: Unassigned » peter törnstrand
Status: Postponed (maintainer needs more info) » Closed (fixed)

I'm marking this as closed. The original poster has not provided further details and a solution for integration with Path filter has been suggested.

deanloh’s picture

Sorry blixxxa for reviving this issue, but can you be kind to elaborate further on how to go about doing this:

"You could achieve the requested behavior by modifying the nodepicker_nodes view."

My goal is the same as the rest, instead of inserting the alias, I would like to insert just "node/xx", so that I don't have to update the link each time the alias is changed. I'm using Global Redirect to direct all node/xxx requests to their correct aliases so there is no need to worry about Google penalizing duplicate links.

deanloh’s picture

Version: 6.x-2.0-beta4 » 6.x-2.0
Status: Closed (fixed) » Active

Sorry blixxxa for reviving this issue, but can you be kind to elaborate further on how to go about doing this:

"You could achieve the requested behavior by modifying the nodepicker_nodes view."

My goal is the same as the rest, instead of inserting the alias, I would like to insert just "node/xx", so that I don't have to update the link each time the alias is changed. I'm using Global Redirect to direct all node/xxx requests to their correct aliases so there is no need to worry about Google penalizing duplicate links.

P/s: Sorry for the double posting too. I meant to change the status of this issue to active in the second time.

peter törnstrand’s picture

Status: Active » Closed (fixed)

In the README.txt file, under the headline "How to integrate with Pathfilter", there is a link to a forum post describing how to set it up to have your links
"node/xxx" instead of the path alias.

Maybe I should set up a handbook page for this module.

deanloh’s picture

Thanks blixxxa! The problem is solved!