Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
HELLO, I'm having problem with pathauto module on my Drupal 8 site. It is working fine with default content types (article ) but not with custom content type that I created please help.
Comment | File | Size | Author |
---|---|---|---|
#8 | pathauto.png | 25.4 KB | matthieuscarset |
Comments
Comment #2
mtiftComment #3
hughmccracken CreditAttribution: hughmccracken as a volunteer commentedHi Mohammed
Just double-checked with Path_auto 8.x-1.0-alpha3 on fairly basic install of Drupal 8.1.9.
Key steps are to add a pattern at /admin/config/search/path/patterns
Typical pattern is to pick up the content author's node title, using the [node:title] token.
One also needs to assign a condition - so its applied to the appropriate content type(s). Sounds like you've got the pattern applied to article and page, but not the new content type? Might pay to check that.
Also - the pattern will be applied by default to new nodes of the new content type.
Content already added will need to be edited - either:
- one by one: edit the URL Path Settings - check the box "Generate automatic URL alias" and save.
OR
- head to /admin/config/search/path/update_bulk and select which types to generate aliases.
hope this helps!
regards
Hugh
Comment #4
mohammed_zohan CreditAttribution: mohammed_zohan commentedThanks it worked
Comment #5
BerdirComment #7
steus CreditAttribution: steus commentedI had similar problem.
Itintially I placed Capitalized path titles (titles, not patterns) - it not works
after changing to lowecased titles all stay ok
Comment #8
matthieuscarset CreditAttribution: matthieuscarset as a volunteer and commentedWas having the same issue.
Path patterns do not work if the name is not all lowercase.