This site uses cookies and similar technologies.

If you don't change browser settings, you agree to it.

I understand
43 Posts
ostap
4 months ago
2
Topic

I apologize in advance for a possibly stupid question. I tried to find the answer, but I couldn't.

So, there is a List@Search. In the table data is displayed. On one of the fields I "hung" link to go to Form. In the settings prescribed form name, and in" Custom Variables "prescribed:"ection_id=$cck->getValue('section_id')".

Everything works fine!

Question:

When you go to a page with a Form in the URL, a variable with a long text value is additionally formed? I see this URL:

http://zzzzz.pro/index.php/find-ection/form/form_ection_card?ection_id=2000&return=aHR0cDovL3Z5Ym9yeS5wcm8vaW5kZXgucGhwL2ZpbmQtZWxlY3Rpb24/cmVnX2VsPTE4JnllYXJfZWw9MjAxOSZkYXQxX2VsPSZkYXQyX2VsPSZjY2tfc3RvcmFnZV9sb2NhdGlvbj1mcmVlJnNlYXJjaD1saXN0X2VsZWN0aW9uJnRhc2s9c2VhcmNo

It's a nightmare!

Thus, if we remove from URL"&return=........"and reload the page-nothing changes!

Alternatively, I added a variable "return" with an empty value in "Custom Variables", i.e. I wrote: "section_id=$cck->getValue ('ection_id')&return=""»

As a result, received when clicking on the link in the URL:

http://zzzzz.pro/index.php/find-ection/form/form_ection_card?ection_id=2000&return=

This, of course, perfectly, but can I something not understand?

Get a VIP membership
167 Posts
iliil
4 months ago
1
Level 1

Hi

I believe the return parameter is the (base64 encoded) current URL. It is stored in the $config and is used to redirect back after form submission (e.g. task Save & Close). If the parameter is not there, the form still works, but you won't get redirected back after the submission.

Best

Michal 

43 Posts
ostap
4 months ago
0
Level 2

This parameter is formed in the URL when you click on the link when displaying data in the List. When I remove this option nothing changes, everything works the same way.

Get a VIP membership