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
- I'm experiencing a critical bug on Appwr...
Hey <@870607367597850624> team / support π I'm experiencing a critical bug on Appwrite Cloud that's blocking my production Flutter app. I've already filed GitH...
- context deadline exceeded
Hi, in one of my projects i continuously receive context deadline exceeded when trying to reach users API from my local machine: https://fra.cloud.appwrite.io/v...
- π Realtime Flutter SDK Crash β Realtime...
**Summary** When using Appwrite Cloud with the Flutter SDK (latest appwrite release: 21.4.0), Realtime crashes with: ```Unhandled async error: type '_Map<String...