Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forum URL Format #285

Open
josylad opened this issue Nov 24, 2022 · 2 comments
Open

Forum URL Format #285

josylad opened this issue Nov 24, 2022 · 2 comments

Comments

@josylad
Copy link

josylad commented Nov 24, 2022

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
Copy link

I don't like such scheme too.

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

@ellmetha
Copy link
Owner

ellmetha commented Nov 5, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants