ellmetha / django-machina

A Django forum engine for building powerful community driven websites.
https://django-machina.readthedocs.org
BSD 3-Clause "New" or "Revised" License
589 stars 126 forks source link

Forum URL Format #285

Open josylad opened 1 year ago

josylad commented 1 year ago

Hello, my forums URL are of this format - "forum/forum/jobsvacancies-3/"

is there a way to remove the second "forum" path? So that I get "forum/jobsvacancies-3/"

AliIslamov commented 10 months ago

I don't like such scheme too.

I use "discussion/" URL in urls.py, so I have got "discussions/forum/..."

ellmetha commented 10 months ago

Unfortunately, there is no way to change this presently. As you can see, the forum/ prefix is hardcoded in the URLs definition of the forum application ([ref|(https://github.com/ellmetha/django-machina/blob/main/machina/apps/forum/urls.py#L28)).

The only way to override this presently would be to create application overrides of the right machina's built-in application and override their urls.py module. Ideally, one setting could be added in order to allow customization of this prefix, and I am open to reviewing PRs where this would be added. 🙂