diff --git a/core/modules/user/user.module b/core/modules/user/user.module index 437416c..a2640ea 100644 --- a/core/modules/user/user.module +++ b/core/modules/user/user.module @@ -716,7 +716,7 @@ function user_block_save($delta = '', $edit = array()) { * Implements hook_block_view(). */ function user_block_view($delta = '') { - global $user; + global $user, $base_url; $block = array(); $block_config = config('user.block'); @@ -733,7 +733,7 @@ function user_block_view($delta = '') { $form['name']['#size'] = 15; $form['pass']['#size'] = 15; if($form['#form_id'] == 'user_login_form'){ - $form['#action'] = current_path(); + $form['#action'] = '/'.current_path(); }else{ $form['#action'] = url(current_path(), array('query' => drupal_get_destination(), 'external' => FALSE)); }