hrfee/jfa-go

Referral link breaking if subdomain includes "account"

Closed this issue · 0 comments

Describe the bug

The code responsible for creating the referral invite url breaks if the domain includes account in the subdomain.
An example case would be https://jf-accounts.mydomain.com/my/account this currently gets turned into https://jf-

jfa-go/ts/user.ts

Lines 269 to 272 in a7529c7

let url = window.location.href;
for (let split of ["#", "?", "account", "my"]) {
url = url.split(split)[0];
}

To Reproduce

Host jfa-go on a subdomain containing account in the name.

Platform/Version

Docker version 0.5.1