Skip to content

Commit

Permalink
Fixed routing if no language dimension present
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Irmscher committed Sep 26, 2017
1 parent 98e92db commit fbb14be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Resources/Private/Assets/JavaScript/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ window.initAjaxForm = function() {
var presetName = $(ajaxForm).attr('data-preset-name');
var dimension = $(ajaxForm).attr('data-dimension');

var formAjaxUrl = location.protocol + '//' + location.host + '/form/' + ( dimension != '' ? dimension + '/' : '' ) + presetName + '/' + formIdentifier;
var formAjaxUrl = location.protocol + '//' + location.host + '/form/' + ( dimension != '' ? dimension + '/' : 'en/' ) + presetName + '/' + formIdentifier;

$(ajaxForm).off('submit').on('submit', 'form', function (e) {

Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ window.initAjaxForm = function() {
var presetName = $(ajaxForm).attr('data-preset-name');
var dimension = $(ajaxForm).attr('data-dimension');

var formAjaxUrl = location.protocol + '//' + location.host + '/form/' + ( dimension != '' ? dimension + '/' : '' ) + presetName + '/' + formIdentifier;
var formAjaxUrl = location.protocol + '//' + location.host + '/form/' + ( dimension != '' ? dimension + '/' : 'en/' ) + presetName + '/' + formIdentifier;

$(ajaxForm).off('submit').on('submit', 'form', function (e) {

Expand Down
4 changes: 2 additions & 2 deletions Resources/Public/JavaScript/main.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fbb14be

Please sign in to comment.