Open maxceem opened 3 years ago
@maxceem can I pick this one?
@yoution I've already asked another member for this, if he couldn't pick up, I would assign to you.
@mbaghel we can navigate to the tab by URL, but when we switch tab, the URL should be also updated accordingly as per:
When we click any tab the URL should be changed respectively.
@mbaghel thanks for update, it's almost there but one moment is still to be improved.
When we navigate by link without specifying the particular tab like this https://platform.topcoder-dev.com/taas/myteams/16873/positions/eaa70908-20dc-488b-a9fb-e96dca98ec33/candidates we expect that it would determine by the same logic as now which tab to redirect to, and would redirect to one of the tabs like https://platform.topcoder-dev.com/taas/myteams/16873/positions/eaa70908-20dc-488b-a9fb-e96dca98ec33/candidates/to-review or https://platform.topcoder-dev.com/taas/myteams/16873/positions/eaa70908-20dc-488b-a9fb-e96dca98ec33/candidates/interviews.
At the moment if I follow the link https://platform.topcoder-dev.com/taas/myteams/16873/positions/eaa70908-20dc-488b-a9fb-e96dca98ec33/candidates it would show the correct tab, but the URL would stay without information about the tab. So if we share such a link with someone, it could show the wrong tab at that moment.
@mbaghel paid via https://www.topcoder.com/challenges/f2c8c663-428d-41b3-b810-23cecebc9706
We have a page where we list Job Candidates splitd into several tabs (example page https://platform.topcoder-dev.com/taas/myteams/16873/positions/eaa70908-20dc-488b-a9fb-e96dca98ec33/candidates)
We would like to be able to open any of these tabs by direct links like:
https://platform.topcoder-dev.com/taas/myteams/16873/positions/eaa70908-20dc-488b-a9fb-e96dca98ec33/candidates/to-review
https://platform.topcoder-dev.com/taas/myteams/16873/positions/eaa70908-20dc-488b-a9fb-e96dca98ec33/candidates/interviews
https://platform.topcoder-dev.com/taas/myteams/16873/positions/eaa70908-20dc-488b-a9fb-e96dca98ec33/candidates/selected
https://platform.topcoder-dev.com/taas/myteams/16873/positions/eaa70908-20dc-488b-a9fb-e96dca98ec33/candidates/declined
When we click any tab the URL should be changed respectively.
Note, that at the moment, when we come to this page we select tab "in-review" or "interviews" automatically, depend on if the "in-review" tab has anyone or no. We should keep this logic the next way: