Skip to Content
Former Member
Aug 27, 2014 at 03:38 PM

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


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.