diff --git a/apps/files/css/files.scss b/apps/files/css/files.scss
index 0885efa423f6cf7af7eb6d2881a29869cbdb34f0..4cde7d03d29b71fc2adf140809f83a804d5b5f34 100644
--- a/apps/files/css/files.scss
+++ b/apps/files/css/files.scss
@@ -1079,6 +1079,10 @@ table.dragshadow td.size {
 		opacity: 1;
 	}
 }
+/* Make sure the hidden input is not rendered at all to avoid scrolling to top */
+#showgridview {
+	display: none;
+}
 
 /* Adjustments for link share page */
 #body-public {