Submission url token incorrect when using one form for all languages

Created on 26 November 2014, over 10 years ago
Updated 8 February 2025, 2 months ago

The submission url token is incorrect when having one form for multiple languages.

This token is used in the default email: so if you would send yourself an email with the data the user submitted: this would be the default:

Submitted on [submission:date:long]
Submitted by user: [submission:user]
Submitted values are:
[submission:values]

The results of this submission may be viewed at:
[submission:url]

[submission:url] returns the incorrect url.
Returns:
http://example/nl/node/198/submission/82
What is expected:
http://example/nl/node/161/submission/82

What it basically does is use the nid of the language you are viewing the form in. What it should use is the orriginal languages form nid, since that is how the submission is stored. With the orriginals languages nid.

πŸ’¬ Support request
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands Michsk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • The "Submission URL token incorrect" error in Drupal when using one form for multiple languages can be fixed by:

    Check Form Action URL – Ensure the form’s action updates correctly based on the selected language.
    Clear Cache – Run drush cache:rebuild or clear cache from Admin > Configuration > Performance.
    Check Modules & Tokens – Some modules may conflict, and incorrect token generation can cause issues. Ensure the correct token is being used.

Production build 0.71.5 2024