mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 22:57:12 -04:00
fix: http:// prefix issue fix (#2719)
This commit is contained in:
parent
381d2e6c71
commit
bfe6c8074a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue