Path for workspace of current user
| Project: | Workspace |
| Version: | 6.x-1.4-rc1 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Thanks for this module. It fills a need I didn't know I had. ;)
There's one thing that I can't figure out though and I'm coming to the conclusion that it's a feature that's not implemented yet. What I need is a path on the site that will show the workspace for the currently logged in user, without any argument for the user id. i.e. a URL I can include in an e-mail to all the users, and it will work for everyone. Additionally, this path should present something informative to unauthenticated users, telling them to authenticate to see their workspace.
Looking in workspace_menu, I thought the 'workspace/%user_uid_optional' path would do the trick since it says the user argument is optional, but when I navigate to '/workspace' or '/workspace/' in my browser, they both give page not found.
Am I just doing it wrong? If code needs to be written, I can help.

#1
Attached is a first draft implementation. Feedback welcomed.
#2
Hi turadg,
Thanks for your patch! It will be reviewed asap.
Please also have a look at #376080: URL to reach Workspace from non "Navigation" menu and report whether the issues are related.
tia
Frank
#3
hi Frank,
The symptoms are different but they may have a related cause. I didn't have any problems with My Workspace showing up in the Navigation menu. So I wasn't experiencing http://drupal.org/node/376080 or http://drupal.org/node/353278 . Oddly, I was having a different problem. In that latter ticket, the submitter writes, "The module itself appears to be working as intended, since when I go to /workspace and /workspace/1 I get the expected results."
For me, /workspace/1 would work and appear in my Navigation menu, but /workspace gave page not found. That's why I hacked this new path together, /workspace/go which redirects to the current user's workspace. I didn't know about the %user_id_optional loader. I've learned a little about it now, but it doesn't appear to be working, at least on my installation.