#1001590: Path alias mapping target added Path alias mapper, but Pathauto module overwrites it when saving the node. I'm working on a patch for this, as pathauto is a widely used module.

#2 feeds-pathauto.patch1.48 KBfranz
Members fund testing for the Drupal project. Drupal Association Learn more


twistor’s picture

$target_node->path['pathauto'] = FALSE;

In setTargetElement() should do it.

franz’s picture

Status: Active » Needs review
1.48 KB

Yes, I had tested this and it's working fine. If anyone can just sign-off, I'll commit it.

twistor’s picture

Status: Needs review » Reviewed & tested by the community

This should be revisited if config for mappers gets in. Making the pathauto behavior configurable would be nice, but this seems like the most sane default behavior.

franz’s picture

Status: Reviewed & tested by the community » Fixed

+1 to make this configurable later. I'll open the issue so we don't forget it: #1670006: Path mapper config

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Cayenne’s picture

Is this patch committed and working? I'm importing a csv with urls specified, but the URL alias is getting overwritten. I hate to reopen the bug if there's some other thing going on. Using the dev version.

Update: Never mind. Was using "url" rather than Path alias. My error...