diff --git a/login_destination.module b/login_destination.module
index 2ad4262..55d047c 100644
--- a/login_destination.module
+++ b/login_destination.module
@@ -225,7 +225,11 @@ function login_destination_translated_menu_link_alter(&$item, $map) {
   $paths = array('user/login', 'user');
   // Append the current path to URL.
   if ($item['link_path'] == 'user/logout' || (in_array($item['link_path'], $paths) && user_is_anonymous())) {
-    $item['localized_options']['query'] = array('current' => $_GET['q']);
+    $current = $_GET['q'];
+    if ($current == '<front>') {
+      $current = '';
+    }
+    $item['localized_options']['query'] = array('current' => $current);
   }
 }
 
