Inconsistent portal behavior with misconfigured url

Issue Summary
Portal inconsistently handles a url with two //, allowing users to take actions (sign-up, change name, get magic link etc), but will not let the user close the Portal modal

Ran into an odd situation with an accidentally malformed portal URL.

So for example if you go to Tangle News, where there are two slashes before the # sign, the modal pops up and lets you submit an email address and get a magic link.

However, if you then try to close the modal, it generates an error message and the user can’t close it.

  • What did you expect to happen?

Either not working at all or working fully.

Steps to Reproduce

  1. Visit a portal url on a Ghost 5.59 site with // before the # sign.

  2. Attempt to close the modal by clicking the X

Setup information

Ghost Version

How did you install Ghost?
Ghost Pro hosted.

Browser & OS version

Same behavior on Arc, Google, Firefox and Safari

Can confirm. 5.59.1, self-hosted, Casper theme, no Portal mods.

Of course, it may be easier to fix the bug that’s creating the bad links to begin with… :)

1 Like

:joy: Absolutely. We’re fixing our error so as not to bump into this edge-case bug.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.