create new tag
, view all tags

SID-02271: Error on redirect when sending email with SendEmailPlugin

Status: Asked 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: 1 year 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

      Change status to:
ALERT! 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.
Status Asked
Title Error on redirect when sending email with SendEmailPlugin
SupportCategory SendEmailPlugin
TWiki version 5.1.1
Server OS SUSE Linux Enterprise Server 11 (x86_64) SP1
Web server Apache/2.2.10 (Linux/SUSE)
Perl version perl5 (revision 5 version 10 subversion 0)
Browser & version Google Chrome 53.0.2785.143 m
Topic revision: r1 - 2016-10-26 - JoseRamon
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.