1

This is the view page along with the url parameter when new entering the menu : url parameter when new entering the menu

Then, this is the url parameter when i press the other tab : url paramater in tab 2

Then, this is my controller

return redirect()->back()->with('status', 'Success updated data');

The problem is when i successfully add data, it will always redirect to the first tab and the parameter # tabs-icons-text-2/ in the url address will disappear, thank you.

Fenz
  • 139
  • 11
  • 4
    The server doesn't know about the # and its content. This is only generated by JS. You can save tab in session using ajax in your view, or use history push state. – Vincent Decaux Oct 08 '19 at 08:59
  • can you give me a reference to look for it, thanks in advance – Fenz Oct 08 '19 at 09:27
  • I just realised this today, but you can also take a look here: https://stackoverflow.com/questions/6768793/get-the-full-url-in-php The common issue is that any value after # is not sent to the server. – Oluwatobi Samuel Omisakin Oct 08 '19 at 09:43
  • Alright I'll try this case, thank you – Fenz Oct 08 '19 at 10:00

1 Answers1

0

return redirect('/edit#tabs-icons-text-2/')

I mean you can specify the url you want