Issue with the permalink for duplicate topic titles
When a user creates 2 topics with the same title under one forum, it successfully created and appeared in the topic list. But, we cannot access the 2nd topic as its permalink directs to the first topic.
I then looked into the issue and found that wpForo creates the same permalink for both topics. Even I can see they have a unique post number respectively, e.g.
- permalink of the 2nd topic always redirects to the 1st topic.
The issue was resolved when I changed the 2nd topic name to something different than the 1st topic.
I hope you may consider fixing this issue soon. Thank you.
P.s. It'll be great to give the user an alert saying something like "a similar topic title exists".
The second topic with the same title should be created with -2 suffix. And this is done automatically by wpForo. So let me know how are you creating topics? Are you adding it directly in database?
Nope. I did not touch the database. I'm using the forum as a normal user, but I'm using Unicode characters in a different language. I think the issue is wpForo adds the suffix before it trims the title.
Please see below: the 1st line is the actual title, and the 2nd line is the title in the permalink that appears. You'll find the length of the actual characters of the topic title (as shown in the first line) and the length of the characters that appear in the permalink.
ပြည်တွင်းစစ် ဖြစ်နေရင် ပြည်ပက ဝင်ကူလို့ မရဘူးဆိုသူတွေ အကွက်ထဲဝင်ပြီဆိုတဲ့ ဂျင်းသမားတွေ ဖတ်ဖို့ .../community/my-forum/ပြည်တွင်းစစ်-ဖြစ်နေရင်-ပ/#post-123
As you know when I copy such an URL from a browser's address bar, the clipboard will hold the "percent-encoded" form like below:
This may be a reason the topic title has been trimmed for a permalink.
If the above explains wpForo trims the title to create a permalink, the suffix should be attached to the title after trimming.