Skip to content

Stats viewer profile links #222

@jasonyess

Description

@jasonyess

Currently, there is no way to create a link to view a specific stats viewer profile
The ability to create a link to directly access specific stats viewer profiles would be pretty useful, especially for profiles that cannot be found by searching (like profiles with 0 list points)

I suggest a feature where passing a URL-encoded name or ID parameter in the URL would show the given stats viewer profile, without searching
e.g. ../statsviewer?name=Zoink would show Zoink's stats viewer profile, and ../statsviewer?id=12345 would show the profile of user with ID 12345

To make getting links easier, selecting a player could update the document URL with the selected player's ID
e.g. selecting Zoink in the statsviewer would update the document URL to have the query parameter ?id=53408

If the provided ID or name is not found, the text content for the viewer-welcome element could be changed to something like "The player provided in the URL was not found", or just the 404 page

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions