Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

  • vivek
  • vivek's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 123
  • Thank you received: 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

Please Log in or Create an account to join the conversation.

Last edit: by vivek.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

Please Log in or Create an account to join the conversation.

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

  • vivek
  • vivek's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 123
  • Thank you received: 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

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.093 seconds

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started