Issue opening URLs in Reddit app

I’m using the inappbrowser plugin to display external URLs. It’s working fine, except when trying to open in the Reddit app on Android.

My URL is like this

Clicking on the link displays the web page in the inappbrowser as it should, but when I click the “Open in Reddit” button this happens:

The web page at reddit://reddit/r/subreddit/comments/abc123/foo-bar 
could not be loaded because:


How do I fix this?

Edit: here’s my function for opening the url. As you can see it’s pretty basic.

showMap(item) {
    const browser = this.iab.create(, '_blank', 'location=no, toolbar=yes');