How do I get rid of the /category/number in my URLs?
-
@reaon Basically the cid is what takes you to announcements, not URL/announcements.
For example.
www.community.nodebb.org/category/1/announcements
would take you to announcements.
www.community.nodebb.org/category/1
would also take you to announcements.The number is the key bit to how you end up where you want to go.
-
@a_5mith said:
The number is the key bit to how you end up where you want to go.
ok, what about keeping number and removing the word
category
?@julian said:
@reaon If I'd named two categories the same thing, then it'd be impossible to know which one users want to go to!
Why should you want to choose same name for both of them?! The system should show up error massage in this case!
Isn't there any method for having clean URL for categories? .httaccess?!
-
-
-
I agree that the /category/ slug is not useful at all. Not useful from a Usability perspective and not useful from a SEO perspective.
I think it should be better something like /announcements-1/ or /1/announcements/ or /announcements/1/ without adding the /category/.
And also for topic I don't think there a real utility in adding /topic/ in the URL.
In any case it's a small issue from an SEO perspective.
But why not putting a URL value in the database for the categories to get rid of the id and the /category/ slug?
-
@andreapernici said:
I agree that the /category/ slug is not useful at all. Not useful from a Usability perspective and not useful from a SEO perspective.
(...)
But why not putting a URL value in the database for the categories to get rid of the id and the /category/ slug?
I agree, and to add to this: the
/category/
and/topic/
slugs look a little bit weird on non-English installs of NodeBB. It would be nice if we can drop these for translation consistency.I don't mind the number in the url; that is also helpful if two topics share the same name.
(Just wondering, is there an update for this request? ).