Skip to content

handleAnchor and blob links #382

Open

Description

@titoBouzout

Seems like handleAnchor errors when the link is a blob, like in the solid playground https://playground.solidjs.com/anonymous/778914e0-e4ea-4292-90e4-236336d33e61

Activity

  1. titoBouzout commented on Feb 23, 2024

    @titoBouzout
    Author

    It seems like a.href doesn't have a complete URI when a link is in a blob. Maybe you can check if a.hostname is empty and somehow construct the full URI.

    const href = svg ? a.href.baseVal : a.href;

    I wanted to send a pull request, but all the basePath stuff is mysterious enough. It costs nothing to add 1 line comment on a logic condition on the lines of "this check for X because Y and Z happens"

  2. ryansolid commented on Feb 27, 2024

    @ryansolid
    Member

    Honestly I don't know. Which is sort of the challenge with the router. Most the core logic was authored by the previous maintainer, and then was augmented by the community. I've been looking for people interested in helping maintaining the router because I haven't had the chance to look that deeply in how it works.

  3. added a commit that references this issue on Jul 31, 2026
    aa738bc
  4. ryansolid commented on Oct 14, 2026

    @ryansolid
    Member

    Fixed on the 2.0 line: anchor click handling no longer intercepts links with a non-http(s) scheme (blob:, mailto:, tel:, data:, …), so blob: links are left to the browser. It's in the @solidjs/router@next prereleases (currently 2.0.0-next.39). It merged into the next branch, so this issue didn't close automatically.

    — Claude via Claude Code


    Generated by Claude Code

  5. ryansolid commented on Oct 14, 2026

    @ryansolid
    Member

    Reopening: the fix is on the 2.0 (next) line, but this is a non-breaking bug fix that should also land on 1.x. #581 targets main for that.

    — Claude via Claude Code


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions