After updating pathauto from 7.x-1.2 -> 7.x-1.3, the url alias checkbox is missing throughout the site I maintain.

We have one content type where the url pattern varies quite a bit depending on the taxonomy term selected in the node. It's not just a matter of plugging in the selected term into the pattern. So I need to use code to set it. I added hook_pathauto_pattern_alter(...) to my module, and it works great. In the code, I have a condition where if ($context['type'] == 'my_content_type'), then the url pattern is changed.

Does using this hook mean the checkbox will no longer be available? If so, documentation might be helpful. I did try commenting out the hook and clearing the cache, but that hasn't helped. Thank you.

Comments

ann b created an issue. See original summary.

sourabhutani’s picture

I'm also facing same issue. @ann b, Did you find anything that can help me ?

daiwik.addweb’s picture

I have update pathauto module and it is working fine at my end i.e I can see the checkbox.

Please try and check if this works for you too.

sourabhutani’s picture

Hi Roshni

I'm using Drupal core 7.53 and Pathauto 7.x-1.3 and facing issue of missing checkbox for Exisiting Nodes.
I have updated my module from Pathauto 7.x-1.2 to 1.3.

I'm watching the checkbox for Node creation case.
Can you help where i'm missing ?

Thanks!

sourabhutani’s picture

Priority: Normal » Major
ann b’s picture

@sourabhutani: the older nodes on our site are still missing the checkbox

duit’s picture

With Drupal core 7.53 I found aliases stopped working all together, I did find though that if you add a 'pattern' to your entity type, checkbox appears and aliases work. I tested this on my own custom entity so may not work in all cases.

caspervoogt’s picture

Running Drupal 7.53 and Pathauto 7.x-1.3 I was also missing the checkbox on existing nodes. Newly added nodes show the checkbox fine.
I rolled back to 7.x-1.2 and now have the checkbox showing for previous/existing nodes as well, so something in the latest 7.x-1.3 changes messed with the checkbox.

Steven Jones’s picture

If you have the 'Update action' in the pathauto settings page (admin/config/search/path/settings) set to: 'Do nothing. Leave the old alias intact.' then pathauto doesn't bother to add its UI etc.

This was done in #2272871: "Do nothing. Leave old alias intact" does not uncheck "Generate automatic URL alias" checkbox on first edit, but does on subsequent edits so is a feature, not a bug :)