Anchors placed outside of a Markdown Editor and without clickHandlers don’t navigate. Therefore one needs to use openLinkText. But in certain mobile environments, clicking these links crashes Obsidian.
Follow-up. I’ve found a workaround. The cause of the issue is an anchor with an hrefand a click handler. This still works on Desktop and some mobile environments, but the double-navigation crashes Android. Even then, the crash only happens if the double link is outside of a MarkdownEditor (in a View, for example).
The fix was to use a span with only a click handler.
Thanks for the report. Given that this is a problem with the Obsidian API, should this have been posted in developers and api section? I’ll move it there.
I’ll take a look at the crashing issue later (not sure what’s causing that) but you’re event listener should probably have an evt.preventDefault() in there to avoid the link behavior from firing
That makes sense. I seem to recall having tried that, but in the -poking-around phase of all this, so perhaps I’m misremembering, or some other issue was interacting weirdly.