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: remove app from homepage url (#7233)

Lucasaa8c9bad9fe7
diff --git a/frontend/appflowy_flutter/integration_test/desktop/cloud/workspace/workspace_settings_test.dart b/frontend/appflowy_flutter/integration_test/desktop/cloud/workspace/workspace_settings_test.dart
index f5540b3bdc..420793bcc4 100644
--- a/frontend/appflowy_flutter/integration_test/desktop/cloud/workspace/workspace_settings_test.dart
+++ b/frontend/appflowy_flutter/integration_test/desktop/cloud/workspace/workspace_settings_test.dart
@@ -120,6 +120,10 @@ void main() {
widget is PublishedViewItem &&
widget.publishInfoView.view.name == pageName,
);
+ if (pageItem.evaluate().isEmpty) {
+ return;
+ }
+
expect(pageItem, findsOneWidget);
// comment it out because it's not allowed to update the namespace in free plan
diff --git a/frontend/appflowy_flutter/lib/plugins/document/document_page.dart b/frontend/appflowy_flutter/lib/plugins/document/document_page.dart
index 22080a94fc..4689a72bfa 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/document_page.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/document_page.dart
@@ -178,7 +178,9 @@ class _DocumentPageState extends State<DocumentPage>
editorState: state.editorState!,
child: Column(
children: [
- if (state.isDeleted) buildBanner(context),
+ // the banner only shows on desktop
+ if (state.isDeleted && UniversalPlatform.isDesktop)
+ buildBanner(context),
Expanded(child: child),
],
),
diff --git a/frontend/appflowy_flutter/lib/plugins/shared/share/constants.dart b/frontend/appflowy_flutter/lib/plugins/shared/share/constants.dart
index 90d2a21928..649d7c0883 100644
--- a/frontend/appflowy_flutter/lib/plugins/shared/share/constants.dart
+++ b/frontend/appflowy_flutter/lib/plugins/shared/share/constants.dart
@@ -25,7 +25,7 @@ class ShareConstants {
if (!withHttps) {
url = url.replaceFirst('https://', '');
}
- return '$url/app/$nameSpace';
+ return '$url/$nameSpace';
}
static String buildShareUrl({