thegooddata / social

GNU General Public License v2.0
0 stars 0 forks source link

Regenerate all url based on new names #12

Closed marcosmenendez closed 10 years ago

marcosmenendez commented 10 years ago

I've changed the name of one Area from "Users" to "People". However the url was not updated accordingly. This applies to other changes in naming. We should regenerate all urls based on new names

josereyero commented 10 years ago

Paths are not updated automatically (only the current node) and some manual steps are needed for that. In order to use the bulk generation option, paths need to be deleted first, then re-created. However this doesn't work in our system because:

Manual workaround, will need a few steps:

  1. Run SQL script for re-enabling automatic path generation for all content. This is the query: update pathauto_state set pathauto = 1 where entity_type = 'node';
  2. Update the content admin view adding the 'Update path alias option'. This one will be included in next release.
  3. Using the content admin page, select the content that needs to be updated an choose the "Update node alias" operation.
    • Optionally if there's too much content for this to be done manually -I believe not yet- aliases can be deleted for all content (nodes) and then regenerated follosing this order: spaces and sections first, on the admin pages, then the rest using Bulk operations.
josereyero commented 10 years ago

Steps 1 and 2 are scripted (Enable TGD Admin, TGD Version) Step 3 needs to be done manually

josereyero commented 10 years ago

Done in PROD