cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to redirect to storefront from the controller in cockpit ng?

Former Member
0 Kudos

Here's my problem statement: I have one text(user name) field and a submit button in custom widget. When i click on submit , i need to redirect it to storefront url where that particular user should be logged in. Here redirecting that url and username should be through http post.

My approach: 1. After clicking on submit button, i will write a controller where i will fetch the value given in the text field. 2. here redirecting to storefront url (where that user shoud be logged in) from controller is possible? here i need to pass username through http post method. How to implement this?

Please suggest how to implement this. Share your thoughts.

Soon reply please.

Regards, Ramya.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

There is an easier way to achieve what you want. Look at the ImpersonationService and the way it is used, for example, in the cscockpit.