Commit a5d58ada authored by frjo's avatar frjo
Browse files

Issue #1361242 by boran: Patch by ahwebd to strip language prefix in colorbox login.

parent ccaa3308
...@@ -9,7 +9,7 @@ Drupal.behaviors.initColorboxLogin = { ...@@ -9,7 +9,7 @@ Drupal.behaviors.initColorboxLogin = {
var path = this.href; var path = this.href;
var new_path = path.replace(/user\/login/,'user/login/colorbox') var new_path = path.replace(/user\/login/,'user/login/colorbox')
var addquery = (path.indexOf('?') !=-1) ? '&' : '?'; var addquery = (path.indexOf('?') !=-1) ? '&' : '?';
var dest = window.location.pathname.replace(Drupal.settings.basePath, ''); var dest = window.location.pathname.replace(Drupal.settings.basePath, '').replace(Drupal.settings.pathPrefix, '');
// If no destination, add one to the current page. // If no destination, add one to the current page.
if (path.indexOf('destination') != -1 || dest == '') { if (path.indexOf('destination') != -1 || dest == '') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment