Incomplete return url after editing collection item
-
Charles Brunet
Oups!
Proposed solution has side effects. It works when clicking 'OK', but not when clicking 'Cancel'. The right solution is top call JavaScript EncodeURIComponent on extracted return value when building URL for Cancel handling:
if (f.elements['return'] && f.elements['return'].value.length > 0) {window.location.href = "' . site_prefix () . '/index/cms-unlock-action?collection=" + collection + "&key=" + key + "&return=" + EncodeURIComponent (f.elements[\'_return\'].value); -
Charles Brunet
- Assigned user changed from lux to Charles Brunet
- State changed from new to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.