0

I have custom Admin grid in my magento 2.

In that each row has view link when I click on view it opens complete details (same as Edit) after that I should come back to admin grid when I click on Back button/link in that (view) phtml file.

How Do I achieve this ? Actually redirect url we can use in controller but in custom phtml what we should use?

Ronak Chauhan
6,2133 gold badges31 silver badges67 bronze badges
asked Dec 15, 2016 at 10:25

1 Answer 1

0

there are multiple ways to achieve that.. you can play with sessions to achieve that but I found the easiest way to achieve this is by Java script..

href="javascript: history.go(-1)"

In your back button give the above URL.

Or if you want the Magento way then you can refer the below Ans.

Magento 2 how to make go back button on custom admin page?

answered Dec 15, 2016 at 10:37

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.