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

Add method for linking to user profile by username #268

Closed
janoskabedis opened this issue Jun 18, 2024 · 2 comments
Closed

Add method for linking to user profile by username #268

janoskabedis opened this issue Jun 18, 2024 · 2 comments

Comments

@janoskabedis
Copy link

Right now, you can only access user profiles in the UI using User IDs. However, often we only have access to the username - not the User ID - and want to link to the user's profile...

Is there a way to make it configurable to enable a proxy route that use's usernames? And then redirects to the user profile?

@signebedi
Copy link
Owner

signebedi commented Jun 18, 2024

This is a good feature to add because we will be able to add hyperlinks to various pages - like the read_one form page, and all the pages where we list multiple forms.

We can add a ADD_PROFILE_BYPASS_ROUTE config that adds a path to access user profiles with the username only, eg. /ui/auth/p/{username}. In this example, we drop the full profile text from the URL to avoid conflicting with the existing profile routes.

@signebedi
Copy link
Owner

Closing, but this may produce strange results when other profiles are not enabled - in which case, we can probably just disable the links...

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

No branches or pull requests

2 participants