From 6e795f54ec73e5ce5634de9aaebff1708f6734ce Mon Sep 17 00:00:00 2001 From: Felipe Peter Date: Thu, 15 Aug 2024 13:48:02 +0800 Subject: [PATCH] Add `usePathUrlStrategy` to web setup instructions (#28120) * Add `usePathUrlStrategy` to web setup instructions Supabase redirects do not work with Flutter's default URL strategy. * fix prettier issue --- .../getting-started/tutorials/with-flutter.mdx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/apps/docs/content/guides/getting-started/tutorials/with-flutter.mdx b/apps/docs/content/guides/getting-started/tutorials/with-flutter.mdx index 6ff234f4c45..64b1e2e1a06 100644 --- a/apps/docs/content/guides/getting-started/tutorials/with-flutter.mdx +++ b/apps/docs/content/guides/getting-started/tutorials/with-flutter.mdx @@ -119,7 +119,18 @@ Add an intent-filter to enable deep linking: -There are no additional configurations. +Supabase redirects do not work with Flutter's [default URL strategy](https://docs.flutter.dev/ui/navigation/url-strategies). +We can switch to the path URL strategy as follows: + +```dart +import 'package:flutter_web_plugins/url_strategy.dart'; + +void main() { + usePathUrlStrategy(); + runApp(ExampleApp()); +} +``` +