Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

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

chirag paneliyabfe6c8074a28
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/url_cell/url_cell.dart b/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/url_cell/url_cell.dart
index 6c3662ce6c..9222aae8f7 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/widgets/row/cells/url_cell/url_cell.dart
+++ b/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);