Closed (fixed)
Project:
Profile
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Feb 2018 at 11:12 UTC
Updated:
2 Mar 2020 at 20:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
barthje commentedIncluded the patch
Comment #4
barthje commentedComment #6
mglamanWe should be adding the field on the entity itself.
Comment #7
wluisi commentedHere's a patch for adding a path base field to the Profile entity itself.
Comment #8
bojanz commentedThis will need a bit more thought, because our default use case doesn't require path aliases, and showing such a field by default to existing users (such as the ones using Commerce) would be confusing. So we'd at least need to make sure that the path field is hidden by default.
Comment #9
littlepixiez commentedI was having a gander at this as we want to have path aliases for one of our profile types. It looks like Pathauto can add a 'path' field definition to any entity type that doesn't currently have one - if you go to "/admin/config/search/path/settings" and switch it on for "Profile", then you can configure patterns for profile entities this way and it will appear in the form display as expected.
If paths were to be a default in this module, presumably tests and the .info file would need the "Path" module as a dependency, and field definitions would need to be added in an update hook as well as predefined in the entity? Happy to supply a patch and pop the URL alias in the hidden region, but like @bojanz says, I'm not sure all users would need this. :)
Comment #10
rolodmonkey commentedI have re-rolled the patch from comment #4.
Comment #11
bojanz commentedI have confirmed that #9 is correct. There is no need for a patch. Just go to /admin/config/search/path/settings and enable Pathauto for Profile.
Thanks, littlepixiez!
Comment #13
hockey2112 commented#9 worked for me, thanks!