@hotosm/hanko-auth 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4568,8 +4568,8 @@ let ve = class extends Ut {
4568
4568
  handleDropdownSelect(n) {
4569
4569
  const e = n.detail.item.value;
4570
4570
  if (this.log("🎯 Dropdown item selected:", e), e === "profile") {
4571
- const t = this.loginUrl || this.hankoUrl, o = this.redirectAfterLogin || window.location.origin;
4572
- window.location.href = `${t}/profile?return_to=${encodeURIComponent(o)}`;
4571
+ const t = this.redirectAfterLogin || window.location.origin, o = this.loginUrl ? `${this.loginUrl}/profile` : `${this.hankoUrl}/app/profile`;
4572
+ window.location.href = `${o}?return_to=${encodeURIComponent(t)}`;
4573
4573
  } else if (e === "connect-osm") {
4574
4574
  const i = window.location.pathname.includes("/app") ? window.location.origin : window.location.href, s = this.hankoUrl;
4575
4575
  window.location.href = `${s}/app?return_to=${encodeURIComponent(