i understand the way you explained, but what i need is as follows:
i am in page where customer places there order (i.e. url is like example.com/customer/order), now during checking out, the customer need to login (i.e. example.com/login). once login is done, i need to take the customer to the same page where he was before (i.e. example.com/customer/order).
so the same thing happens when the customer want to modify there order (because customer can see their order status with orderId without login to the system).
so how can i get "/customer/order" or "/customer/order/modify"in login