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.207 seconds
Great UX great performance and definitely a time saver. It only took me 10 minutes of playing around before purchasing a subscription and right now I just want to throw more money at you! I just started a new project and after just 4h I can already tell it probably saved me several days of work. I'm building a wholesale ordering system with sales rep management. I have not looked at the code yet but so far: impressive.
flip (Forum)

Get Started