Hashtag in base URL in account confirmation mail does not create valid URL
- 0
- Users
- Flutter
- Accounts
Hi there,
I am trying to create a mail confirmation mail with an SPA URL. The URL used as base URL contains a Hashtag: https://app.example.com/#/mailconfirmation
The confirmation mail is triggered from a flutter frontend.
The problem occurs, when the mail with the link with the userID and secret has the following link structure:
https://app.example.com/?userId=123&secret=abc123#/mailconfirmation
The expected link structure is:
https://app.example.com/#/mailconfirmation?userId=123&secret=abc123
Is there something I am missing for SPA links?
My app is capable to process the expected link structure as expected, but the generated faulty link structure is obviously not usable.
The trigger function in Flutter is used in the following form:
void createVerification() async {
String baseUrl = 'https://app.example.com/#/mailconfirmation';
var result = await _account.createVerification(
url: baseUrl,
);
}
I have checked the behaviour for the reset password template as well and it has the identical behaviour. So I guess this is the same logic for creating the link.
I used appwrite v1.4.6 and Flutter package appwrite 11.0.0.
Just upgraded to latest version. Also present in appwrite v1.4.8
@dlohani / @Steven can you take a look here?
any chance you can change the url strategy to not use the hash url strategy?
FYI, related issue: https://github.com/appwrite/appwrite/issues/2403
I was trying an URL path strategy previously, but ran into issues with my server. I might give it another try with the path strategy. But I am glad the issue is already known.
What about an option for hash-strategy handling in the unParseURL-function? https://www.tehplayground.com/iycsODpR0bqwxpaT
Nevertheless, I will try to switch back to path strategy 🙂
The problem is flutter uses the hash differently. It's supposed to always go at the end
Recommended threads
- Flutter OAuth2 webAuth Bug?
I created with flutter an app where I can login in with my Microsoft Account. When I compile it to Web (WASM) or Android (aab) then there is no problem what so ...
- Synchronous Function Execution Timed Out...
Hi Appwrite team 👋 I’m facing a synchronous function execution timeout issue on Appwrite Cloud and would appreciate some guidance. I executed this function u...
- Push Notification FCM Error
Hello dear people. I tried to integrate Push Notifications into my Flutter App. Everything works fine on Android/iOS Simulator + Testflight but as soon as I s...