Apparently the current version is not aware of multilingual sites.
Worse, if you have a multilingual site, not one alias will be created.
This is because of request_path() is also including the language prefix, current_path() is not.

Secondly, when an alias has been created, but you update the pattern afterwards, no new alias will be created.

I refactored page_manager_pathauto_ctools_render_alter() from scratch.
Patch attached.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

betz created an issue. See original summary.

betz’s picture

betz’s picture

Added a drupal_goto() when a path has been saved.

kopeboy’s picture

Hello?

I need this to work well on a multilingual site, but I am no a developer (yet).

drupov’s picture

@betz good work.

There is one small change needed though: if a pattern changes the path should be updated - currently it gets created anew. The patch adds that.

drupov’s picture

Status: Active » Needs review
drupov’s picture

@kopeboy if you need translations for your page manager paths, please check out https://www.drupal.org/node/2701187#comment-11045169

cimo75’s picture

Thanks you working fine here.

cimo75’s picture

I am getting a
Drush command terminated abnormally due to an unrecoverable error.
error now, it may related to the goto as stated in
https://www.drupal.org/node/1140842
it should be wrapped in drupal_is_cli.
S.