I have Area pages like below:
On each area page common wp menus are displaying categories. To illustrate:
I have set my Permalink settings as below:
So for now My category URL is:
But my requirements is when user visit category page suppose category1 from area page say area1 then category URL turns out like below URL:
And if category menu is visited from area 2 then it should be :
Please suggest, I am not getting any idea by searching on web how to implement this kind of structure.
Trying to make it more clear that I want to append slug of page to category URL (page from where user will visit category link, slug of that page will get added to category URL at end of URL)