django-machina icon indicating copy to clipboard operation
django-machina copied to clipboard

Forum URL Format

Open josylad opened this issue 3 years ago • 2 comments

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/"

josylad avatar Nov 24 '22 10:11 josylad

I don't like such scheme too.

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

AliIslamov avatar Nov 05 '23 19:11 AliIslamov

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. 🙂

ellmetha avatar Nov 05 '23 23:11 ellmetha