SID-02271: Error on redirect when sending email with SendEmailPlugin
| Status: |
Asked |
TWiki version: |
5.1.1 |
Perl version: |
perl5 (revision 5 version 10 subversion 0) |
| Category: |
SendEmailPlugin |
Server OS: |
SUSE Linux Enterprise Server 11 (x86_64) SP1 |
Last update: |
9 years ago |
Hi all,
After managing this plugin to work (thanks again
PeterThoeny), I don't understand why the redirectto element doesn't work.
I have made a form based TWiki application taking into account everything learned from the
ContactDbAddOn.
One of the pages of this application has a "Save" button and a "Send" button and, the thing is, that I want to redirect the user to the same page after pressing any of these buttons.
When the "Save" button is pressed, everything works fine: the data is saved and the user is redirected to the same page with the updated data. The problem comes when I press the "Send" button, the user is redirected to the page but the data isn't loaded and the email is not sent. I observed that the URL where I am redirected is:
http://(domain)/twiki/bin/view/PrestaWikiPrestaLex/ConsultaFichaCriterio?twiki_redirect_cache=db0743e105171a79a921355b083001ce
when the desired URL would be:
http://(domain)/twiki/bin/view/PrestaWikiPrestaLex/ConsultaFichaCriterio?NumFicha=28-36
I have checked if adding the domain (
http://(domain)/
) in the {PermittedRedirectHostUrls} tag solved the problem, but haven't.
Please, I would be very thankful if anybody could help me with this.
Best regards.
--
Jose Ramón - 2016-10-26
Discussion and Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.