Skip to content

[bug] "Join()" from @tauri-apps/api/path doesn't produce encoded path on Android #14635

@Keshav-writes-code

Description

@Keshav-writes-code

Describe the bug

so, the @tauri-apps/api/path function called join() is not joining android content uri stirng in an as an encoded string.
Example

// running in android

await join('Hello', 'Guyz');
// Result : Hello/Guyz
// Should be : Hello%2FGuyz
// %2F bieng the path seperator 

Reproduction

  1. create a new tauri Project using vite
    • choose vanilla option
  2. just add a button in frontend, onclick triggers the join('Hello', 'Guyz') function from @tauri-apps/api/path
  3. log the result and see in the android js console (eg through the chrome://inspect/#devices)

Expected behavior

it should add a android seperator which is commonly set to %2F

Full tauri info output

[✔] Environment
    - OS: Debian 12.0.0 x86_64 (X64) (Unknown DE on x11)
    ✔ webkit2gtk-4.1: 2.50.1
    ✔ rsvg2: 2.54.7
    ✔ rustc: 1.91.1 (ed61e7d7e 2025-11-07)
    ✔ cargo: 1.91.1 (ea2d97820 2025-10-10)
    ✔ rustup: 1.28.2 (e4f3ad6f8 2025-04-28)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
    - node: 22.19.0
    - npm: 10.9.3
    - bun: 1.3.3

[-] Packages
    - tauri 🦀: 2.9.4
    - tauri-build 🦀: 2.5.3
    - wry 🦀: 0.53.5
    - tao 🦀: 0.34.5
    - tauri-cli 🦀: 2.9.4 (outdated, latest: 2.9.5)

[-] Plugins
    - tauri-plugin-dialog 🦀: 2.4.2
    - tauri-plugin-store 🦀: 2.4.1
    - tauri-plugin-log 🦀: 2.7.1
    - tauri-plugin-os 🦀: 2.3.2
    - tauri-plugin-fs 🦀: 2.4.4

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:5173/

Stack trace


Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions