Installed:
Drupal Core 7.15
Pathauto 7.x-1.2
Scanner 7.x-1.x-dev

Scanner Replace doesn't seem to be playing well with Pathauto.

If a node has a custom URL alias set ie. it is not using the default alias pattern, when text on that node is replaced using Scanner, the custom URL alias is being ignored and the setting for the URL Path Settings is defaulting back to "Generate automatic URL alias ".

So basically all of my custom alias' are being wiped out when I use replace across a lot of nodes.

Comments

ericras’s picture

Priority: Normal » Major

Patch #103 in #936222: Merge in pathauto_persist module functionality to prevent losing manual aliases with node_save() calls fixes this for me. That issue looks like it may be resolved soon.

ericras’s picture

Issue tags: +pathauto
ericras’s picture

Title: Scanner Replace is overwriting node's URL path settings - changing custom alias to the default alias pattern » Custom alias overwritten on node_save() with alias generated from Path Auto pattern

Unfortunately, the Path Auto patch in #1 and/or the Path Auto Persist module only solve this problem from the point at which they are updated/enabled. Existing nodes in the system will still exhibit this unwanted behavior.

I added a fix for this using an optional setting in the work I am doing at http://drupal.org/sandbox/ericras/1960472

  • ericras committed 49e89cb on 7.x-1.x
    Issue #1766076: Add setting to maintain custom URL aliases
    
fizk’s picture

Issue summary: View changes
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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