Prechádzať zdrojové kódy

fix: http:// prefix issue fix (#2719)

chirag paneliya 1 rok pred
rodič
commit
bfe6c8074a

+ 1 - 1
frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/url_cell/url_cell.dart

@@ -299,7 +299,7 @@ class _VisitURLAccessoryState extends State<_VisitURLAccessory>
   void onTap() {
     var content =
         widget.cellContext.getCellData(loadIfNotExist: false)?.content ?? "";
-    if (!content.contains('http://')) {
+    if (!content.startsWith('http://') && !content.startsWith('https://')) {
       content = 'http://$content';
     }
     final uri = Uri.parse(content);