bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

Slugs and Duplicates

(8 posts)
  • Started 1 year ago by marky
  • Latest reply from mdawaffe
  • This topic is not resolved

Tags:

  1. marky
    Member

    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.

    Posted 1 year ago #
  2. Did this happen during the upgrade? Or when making the topics?

    Posted 1 year ago #
  3. marky
    Member

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

    Posted 1 year ago #
  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.

    Posted 1 year ago #
  5. Ticket here:

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

    Posted 1 year ago #
  6. Now fixed in Subversion repository.

    Posted 1 year ago #
  7. marky
    Member

    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.

    Posted 1 year ago #
  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.

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.