Android: Back button goes to home screen after sharing to Obsidian

Bug description

When sharing a URL/text from another app (Chrome, X, etc.) to Obsidian, pressing the back button does NOT
return to the source app — it goes to the home screen.

Other apps (Pocket, Notion, Google Keep) correctly return to the source app after a share intent.

Steps to reproduce

  1. Open Chrome or X on Android
  2. Share an article to Obsidian
  3. Press back button

Expected: Returns to Chrome/X
Actual: Goes to home screen

Likely cause

Obsidian’s activity uses singleTask launch mode, which breaks the Android back stack. Using singleTop for
the share-receiving activity would fix this.

Environment

  • Samsung Galaxy S25 Ultra
  • Android 15 (One UI 7)
  • Obsidian: latest

I don’t think this is a bug. This is not an universal behavior.

I just tried sharing to whatsapp, pressing back goes to the whatsapp’s contact list.

Thanks for looking into this.

The WhatsApp example is actually different — back goes to WhatsApp’s own contact list, not the home screen. With Obsidian, back goes straight to the home screen, which means the back stack is lost entirely.

You have to do back twice to go back to the home screen. That’s a separate behavior.

Anyway, for this specific matter of going back to the originating app after sharing with back, please open a feature request.