Welcome, Guest
Username: Password: Remember me

TOPIC: Redirections in return var

Redirections in return var 20 Nov 2014 12:43 #12788

  • vivek
  • vivek's Avatar
  • Offline
  • Premium Member
  • Posts: 123
  • Thank you received: 2
  • Karma: 2
Hi,
Foreign key links not going to the page from where it is called from.

For Example :

Employee Collection Layout has a foreign key link for departments.When I click on the departments link, it takes me to the departments page then on clicking on cancel it goes to Department collection layout instead of the employee collection layout.

Ideally it should go back to Employee Collection layout in this scenario.

Note : This scenario perfectly works fine, if the foreign key link is a modal layout.

Regards
Vivek
Last Edit: 20 Nov 2014 12:46 by vivek.
The administrator has disabled public write access.

Redirections in return var 20 Nov 2014 15:04 #12790

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Idealy yes, but cook does not handle such redirections for the moment.

When loading the form page, it should be sendingalso a return page in the post parameters, or in the GET from the caller.

Then the redirection should see this string and use it when it is present.
Don't forget to use Encode64 / Decode64 functions, so it can handle special chars.

It might be quite easy to achieve.
Coding is now a piece of cake
The administrator has disabled public write access.

Redirections in return var 20 Nov 2014 16:12 #12791

  • vivek
  • vivek's Avatar
  • Offline
  • Premium Member
  • Posts: 123
  • Thank you received: 2
  • Karma: 2
Yes, I am investigating this part.It is already implemented by joomla when we click on the options button.

The url has a parameter called return.

www.j-cook.pro/sandbox/cms32/administrat...JmxheW91dD1kZWZhdWx0
The administrator has disabled public write access.
Time to create page: 0.081 seconds

Get Started