url for current user?

Created on 19 January 2023, almost 2 years ago
Updated 20 January 2023, almost 2 years ago

Problem/Motivation

We need to construct a url so the current user is routed to different form modes on the user entity

Steps to reproduce

We have different user fields for different user roles so we have created form modes for each, eg Tutor
Now we need a button which takes the current user to the Tutor form, if they have the correct role.
We find /user/6859/edit?display=tutor works for user 6859
but /user/edit?display=tutor sends us to the default user form, not the custom one for Tutors

Proposed resolution

We tried project/user_current_paths which works as designed (a url of /user/edit will work for the current user) but /user/edit?display=tutor sends us to the default user form, not the custom one for Tutors

Does anyone know how to solve this use case?

Thanks

💬 Support request
Status

Active

Version

2.1

Component

Miscellaneous

Created by

🇬🇧United Kingdom nigelwhite Marsden

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024