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
- Current User is Not authorized
recreating same Thread
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...