diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module
index 155a6b6..29d9bba 100644
--- a/core/modules/comment/comment.module
+++ b/core/modules/comment/comment.module
@@ -706,8 +706,11 @@ function template_preprocess_comment(&$variables) {
     $variables['signature'] = '';
   }
   if (isset($comment->in_preview)) {
-    $variables['title'] = \Drupal::l($comment->getSubject(), new Url('<front>'));
-    $variables['permalink'] = \Drupal::l(t('Permalink'), new Url('<front>'));
+    // Link title and permalink to current page because comment could not be
+    // saved now and we should not allow user to leave the page.
+    $uri = new Url('<current>', array(), array('fragment' => 'new'));
+    $variables['title'] = \Drupal::l($comment->getSubject(), $uri);
+    $variables['permalink'] = \Drupal::l(t('Permalink'), $uri);
   }
   else {
     $uri = $comment->urlInfo();
