Fixed again a problem with productpicker workflows and disabled URL rewriting (closes #232)

This commit is contained in:
Bernd Bestel
2019-05-03 20:22:48 +02:00
parent 4c2cf4944d
commit 78a230c5d5

View File

@@ -6,7 +6,7 @@
var returnTo = GetUriParam('returnto');
if (returnTo !== undefined)
{
redirectDestination = returnTo + '?createdproduct=' + encodeURIComponent($('#name').val());
redirectDestination = U(returnTo) + '?createdproduct=' + encodeURIComponent($('#name').val());
}
var jsonData = $('#product-form').serializeJSON({ checkboxUncheckedValue: "0" });