The Take Survey widget fails to save and submit when the URL contains trailing slash.

A user can access a Service Portal with a URL suffix of "sp" using either of the following URLs:


When using the second URL, however, the Take Survey widget does not work properly.

Steps to Reproduce


  1. Ensure that Service Portal is set up.
  2. Navigate to Service Portal > Service Portal Configuration.
  3. Click Designer.
  4. Open the Service Portal (index) page.
  5. In the Widgets list on the left, click My Surveys.
  6. Drag the widget and drop it on the page 
  7. Impersonate a user who has a 'Ready to Take' survey instance.
  8. Open the Service Portal using the following URL:
    https://<instance name>
  9. From the My Surveys widget, open the survey.
  10. After the survey loads, click Get Started.
  11. Complete part of the survey and click Save.
    Note that the following error message is displayed:

    Something went wrong. Please try again later.


  1. Navigate to Service Portal > Widgets.
  2. In the Name column, locate and open the record for the Take Survey widget.
  3. In Client controller, in the function c.submitAjax,  change 
    url: '', 
    url: '/',.
  4. Right-click in the header bar and select Save.

Related Problem: PRB806545

Seen In

There is no data to report.

Fixed In

Istanbul Patch 7

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-05-21 11:35:59