Skip to content

prerender: The url is triming the fragment under prerender #209

@spiffytech

Description

@spiffytech

Bug Report

Current Behavior

When saving a URL that includes a fragment identifier, the meta API url response field strips out any fragment identifier that was in the original URL

In: https://example.com/#hello
Out: https://example.com/

Expected behavior/code

I expect the url field to show what's in the browser address bar after the page loads. If following the link in my browser preserves the fragment, so should Microlink.

Additional context/Screenshots

This is a problem for my use case: I use the url field to get a canonical link to show users, since it resolves HTTPS redirects, shortlinks, etc.

I can't do that if the url field strips out important data (text highlights, or which part of the page is being linked to).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions