Forums

Join
bbPress Support ForumsTroubleshootingSlugs and Duplicates

Info

Slugs and Duplicates

  1. I've noticed when multiple topics share the same topic name, the slug gets modified a little strangely. For example, if I have four topics named "Test" the slugs would be:

    I'd imagine by the 50th topic, the URL would become quite unwieldy. Surely only the last slug number is necessary. Is there any way to fix this? Since these are supposed to be permalinks, it's somewhat urgent.

  2. Did this happen during the upgrade? Or when making the topics?

  3. During the upgrade. Admittedly, I haven't tried it when making new topics with duplicate names yet.

  4. I think there is a problem with the upgrade script that causes this. There is no problem creating new topics.

    You can manually edit the slugs in the database if you have this problem on a production site.

    I'll raise a ticket about this though.

  5. Ticket here:

    http://trac.bbpress.org/ticket/671

  6. Now fixed in Subversion repository.

  7. Wonderful, thank you!

    Is there a utility that will re-generate the slugs for me? Manually changing the database isn't really a viable option for me, I'm afraid. I have thousands of posts and no way of immediately knowing which were affected by this issue.

  8. You can use the script attached to that ticket: http://trac.bbpress.org/ticket/671

    It will only work once you upgrade to the next version of bbPress (it's not out yet :) ) or if you're running the "unstable" code in the repository.

    Follow the instructions in the last comment.

  9. You must log in to post.