Opening Task from the profile page opens in the Tasks tab
A task opened from the patient profile opens in the Tasks tab, but should be shown in the right pane of the patient profile to maintain the user's navigation and context.
The idea was if you're linking to a task the task should be the new context. I'm really cautious about doing this because it starts to break our concept of context. To be consistent we would have to make many other similar changes, for example: when clicking a report on the patient profile we put the report in context. We need to think about what context means and when it makes sense to switch.
We currently have the following structure, where the bold items in the right pane list are the ones that cause tab switches:

From the most recent discussion about this, we determined that the most problematic for users is opening a task view from a contact profile since you want to end up back on the profile page afterwards. Due to the work in #1242, we should make sure to configure the tasks accordingly and then display the form directly in the right pane of the profile.
Confirmed this still exists...
If I go from a patient to a “register pregnancy” form then cancel that form with the X and confirm, I end up on the task list. I’d expect to end up back on the profile (where I came from).