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.
Problem/Motivation
In #2615922-13: Configure path auto for organizations, we identified that there were a few problems:
- An alias isn't always generated (e.g.: for https://www.drupal.org/node/2446211 )
- The form was not validating because of the not set "Supporting Technologies listing" field (may be related to above) — (e.g.: for https://www.drupal.org/node/2178413 )
- Aliases can contain apostrophes (e.g.: https://www.drupal.org/brady's-meat-deli )
Proposed resolution
- Figure out why https://www.drupal.org/node/2446211 didn't get an alias initially.
Figure out why the the form was not validating because "Supporting Technologies listing" field was not set (maybe make it optional? or conditionally optional?)The supporting technologies listing field is a problem for org profiles created between the time the field was added and when a default was added to that field. There should not be many like that, but we need to run a query to see how extensive this problem is.Filter out apostrophes in the Pathauto settingsApostrophes removed.
Remaining tasks
TBD
User interface changes
TBD
API changes
TBD
Data model changes
TBD
Comments
Comment #2
joshuamiI'm updating this issue summary. We did some research and there is no need for the /o/ alias path for mitigating security concerns. For Google to respect the verification file, both the pattern would need to be matched and the content of the field would need to exactly match what Google expects. Since an organization node has a lot of other content, the verification would fail.
The rest of the items are great follow ups. We'll tackle them in our next sprint (starts on January 18th).
Comment #3
jan kellermann CreditAttribution: jan kellermann at werk21 commentedWe also didn't get an alias for https://www.drupal.org/node/2557985 after saving the node.
And we dont have a field called "Supporting Technologies listing".
Comment #4
drummI updated your organization page to use pathauto.
The “Supporting Technologies listing” field is access controlled for only the Marketplace webmasters.
Comment #5
dddave CreditAttribution: dddave commentedDo we want a . in our url pattern? https://www.drupal.org/acreative.
Comment #6
joshuamiThat's interesting. I could have sworn we were stripping periods from the alias pattern. I would say we don't want a trailing period, but I don't have a strong preference for whether we allow periods in the middle of an organization name. It would be easiest to just remove that from the pattern as well to avoid confusion.
Comment #7
joshuamiPeriods have been removed from the path punctuation settings. That should clear up quite a few broken links in the future.
This still need a little research into a couple of the remaining bugs.
Comment #8
joshuamiComment #9
fenstratAlso didn't get an alias for https://www.drupal.org/node/2451797 (and not sure where to ask for a fix). Any chance its pathauto setting could be manually turned on?
Comment #10
drummfenstrat - I updated the alias on your page.