Why isn't the custom thank you page working if it does not have an extension?

  • Profile Image
    goberol
    Asked on December 13, 2017 at 09:16 AM

    I faced the same issue when trying to redirect to a custom page upon condition.

    I solved this postfixing the url with .html.

    eg: www.yoursite.com/customthankyou

    => www.yoursite.com/customthankyou.html

    The former brings me a blank page, the latter the right page. ;-)

    Looks like the specified url here are note handled the same way as the others (no rewriting)



    This is a re-post of a comment on Change Thank You Page URL Based on a Condition

  • Profile Image
    Kevin_G
    Answered on December 13, 2017 at 10:40 AM

    I have been testing on my end and was unable to replicate the issue, for example, on this form https://form.jotform.com/73464236388970 I'm redirecting to a page without the .html and it works. 

    May you please provide us the link you were trying to set up as custom thank you page? 

    We will wait for your response.

  • Profile Image
    goberol
    Answered on December 13, 2017 at 10:58 AM

    Hi Kevin,

    I cloned the form here: https://form.jotformeu.com/73464631798368

    Fill in with dummy data and select "Espèces ou carte le jour du ravitaillement (présence requise pour payer)" option in the last section.

    You'll see after submitting that you'll get message "This site is currently undergoing maintenance, and will be back shortly." whereas it redirects to http://www.blueservice.eu/thankyou which is available.

    Tested on Opera (49.0.2725.56) on Mac OS X 10.9.5 64-bit and Firefox as well and same output.

    You'll see in settings that there are 2 conditions for redirecting to different url's upon user's choice.

    If adding postfix .html to url: http://www.blueservice.eu/thankyou.html it's working.

    I know this is a workaround but as I don't want to waste time for solving this the right way, this is fine for me until now.

    But I assume this should work without the html extension.


    Any insights welcomed.

    Regards,

    Olivier

  • Profile Image
    aubreybourke
    Answered on December 13, 2017 at 12:35 PM

    I checked the redirect URL (http://www.blueservice.eu/thankyou.html

    You definitely need to specify the html extension.

    You only omit it when you have an index.html file inside a named directory.

    For example:

    http://www.blueservice.eu/thankyou would work if you had a subfolder on http://www.blueservice.eu called "thankyou" with an index.html file inside it.



  • Profile Image
    goberol
    Answered on December 13, 2017 at 12:44 PM

    Thanks for your bright answer.

    Regards,

    Olivier