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
- Redirect URL sends HTTP instead of HTTPS...
I am not sure since when this issue is present, but my Google and Apple redirect URI are no longer pointing to the HTTPS redirect URI when I try to use OAuth. ...
- Failing to run document operations on sd...
Could someone point me in the right direction I'm going in cirlces. I have a problem with sdks and my self-hosted server in production (for ~3 years) I have bee...
- Functions fail to deploy after switching...
Hi <@1087889306208718959> , after switching my self-hosted Appwrite instance to use AWS S3 as the storage backend, my Cloud Functions stopped working. Iβm runni...
