Skip to content

[develop] Locator href for exploded archive audiobook incorrectly starts with leading slash  #429

@domkm

Description

@domkm

Describe the bug

The documentation says Locator href format for files is changing: "/dir/my chapter.html becomes the relative URL path dir/my%20chapter.html". However, when I load an audiobook from a local directory URL where the files within the directory are MP3s using 3.0.0 alpha, I see locators that appear to be a combination of the old format and new format. Specifically, they are now percent encoded but the leading slash is still present.

How to reproduce?

  1. Open an audiobook publication using a FileURL for a directory that contains audio files.
  2. Create a navigator for said publication.
  3. Observe the format of locator hrefs created by the navigator.

Readium version

develop (3.0.0)

OS version

iOS 17.5

Testing device

Mac (built for iPad)

Environment

macOS: `sw_vers -productVersion`
platform: `uname -m`
carthage: `carthage version`
Xcode 15.4
Build version 15F31d

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions