Skip to Content.
Sympa Menu

comanage-dev - Re: [comanage-dev] Menu updates (CO-828) and questions that arise from the new navigational paradigm.

Subject: COmanage Developers List

List archive

Re: [comanage-dev] Menu updates (CO-828) and questions that arise from the new navigational paradigm.


Chronological Thread 
  • From: Arlen Johnson <>
  • To:
  • Subject: Re: [comanage-dev] Menu updates (CO-828) and questions that arise from the new navigational paradigm.
  • Date: Mon, 23 Feb 2015 00:14:12 -0500


On 2/23/15 12:06 AM, Benn Oshrin wrote:

* If a user is in exactly one CO, should that user see the
Collaborations menu at all? ...I don't think so - which means that
the user should be redirected to their CO dashboard on login.

o To do this, I believe we can add a test within the login()
function of the UsersController, setting the URL parameter for
the redirectUrl function so long as other rules (like T&Cs)
don't bubble up.

No, this doesn't go in login. Keep in mind people might "log in" via a deep link, or by reauthenticating when their session expires, in which case they should be sent to the appropriate deep link/page. A better approach is for the beforeFilter() in the appropriate controller to do the check and issue the redirect if needed.

ie: If I go to /registry, I either get a CO chooser menu (or just some text that says to pick from the menubar) or I get redirected to the appropriate landing page. If I visit this page 10 times in a session, I should get the same behavior, even if I logged in just once.

I think this might need to go in PagesController. See also View/Pages/home.ctp.

Thanks,

-Benn-

Excellent - thanks, Benn. I'll take a look.
A



Archive powered by MHonArc 2.6.16.

Top of Page