Skip to content

Feat: Use normal links where possible #464

@wolrah

Description

@wolrah

Is your feature request related to a problem? Please describe.
Most of the "links" in the UI are HTMX elements with the hx-get attribute set which look and at a basic level appear to function like normal links, but instead trigger a HTMX swap. The issue is that they only behave like links at the most basic level in that they trigger the pointer cursor and respond to a left click.

What they don't do is support being right clicked and delivering a context menu with the option to copy the link, open it in a new tab/window, etc. They don't support being middle clicked to open in a new tab. They don't support the target preview on mouseover that links have had since the beginning of web browsers. They don't support keyboard navigation. I haven't checked but I'd be willing to bet based on the lack of keyboard support they probably also don't work with screen readers or other accessibility tools. It also won't work at all without Javascript enabled.

Describe the solution you'd like
I'm not familiar with HTMX but it seems like the recommended approach for when you want a link to look and work like a link is "boosting" where a normal link is used as the base and the HTMX system catches normal clicks to convert to a swap while allowing other interactions to work as normal.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions