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

Edit organization/project slug #2734

Closed
oriyalperin opened this issue Jul 25, 2024 · 10 comments
Closed

Edit organization/project slug #2734

oriyalperin opened this issue Jul 25, 2024 · 10 comments
Labels
Type: Feature-request issue that can be developed into a feature or US

Comments

@oriyalperin
Copy link

Is there a way for an organization initiator to edit the organization or project slug?

@erelsgl
Copy link

erelsgl commented Jul 28, 2024

The problem is that, if the project title is not in English, the URL does not fit the name of the project or organization.
What is the best way to handle slugs for non-English titles?

@t-j-q
Copy link
Contributor

t-j-q commented Jul 31, 2024

@oriyalperin Currently, it is not possible for initiators to change any URL slug. The idea of implementing this feature has existed for quite some time but has not been prioritized highly.

@t-j-q
Copy link
Contributor

t-j-q commented Jul 31, 2024

@erelsgl Could you describe the problem in more detail?

@oriyalperin
Copy link
Author

oriyalperin commented Jul 31, 2024

@erelsgl Could you describe the problem in more detail?

Thanks @TeaJayyy,
we tried creating an organization with a Hebrew name, but the slug generated was just "organisation".
The same thing happened with a Hebrew project name, resulting in the slug "project",
so, the project URL is:
http://localhost:8004/organisation/projects/project/

We want the slugs to be meaningful and reflect the actual Hebrew names. How can we achieve this?

@t-j-q
Copy link
Contributor

t-j-q commented Jul 31, 2024

@erelsgl Assuming you chose an organisation name written in Hebrew letters, I think there is no "translation" into the Latin alphabet. Correct me if I'm wrong here. Maybe @goapunk can give you a more elaborate answer.

@erelsgl
Copy link

erelsgl commented Jul 31, 2024

There is also a problem when creating several different organizations / projects with different Hebrew names. It is very hard to distinguish between them.

@goapunk
Copy link
Contributor

goapunk commented Jul 31, 2024

@erelsgl There's currently no way to change the slug for an organisation (except via the django shell). For projects you can change the slug via the django-admin. Could you give us an example of a project name which fails so we can investigate the issue? The slugs are auto-generated via the django-autoslug package, so I assume the issue comes from there, e.g. justinmayer/django-autoslug#85

@oriyalperin
Copy link
Author

@goapunk if I manually change the slug as you suggested, will it automatically update in the URLs of all content that relies on that slug?

@goapunk
Copy link
Contributor

goapunk commented Aug 1, 2024

@oriyalperin If you change a project slug everything should still work within a+ (if you shared the link to the project with someone the old link will not work any more of course)

@goapunk goapunk added Dev: Not our bug External bugs that needs to get fixed elsewhere Type: Feature-request issue that can be developed into a feature or US and removed Dev: Not our bug External bugs that needs to get fixed elsewhere labels Aug 1, 2024
@t-j-q
Copy link
Contributor

t-j-q commented Sep 6, 2024

Closing this issue (edit slug) but created an entry in the backlog for the future. By the way, we'd be happy to receive a PR from you if you want to tackle this. Regarding the autoslug, we will have an eye on it but keeping it as an issue for the moment. Thanks for your contributions! :)

@t-j-q t-j-q closed this as completed Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature-request issue that can be developed into a feature or US
Projects
None yet
Development

No branches or pull requests

4 participants