#12527·InvenTree

Most links in user interface are made with <div onClick=...> intead of <a href=...>

Author: chilleCreated Jul 31, 2026Updated Sep 14, 2026
LabelsquestionUser Interface

Please verify that this bug has NOT been raised before.

  • I checked and didn't find a similar issue

Describe the bug*

The new React user interface is amazing. However, there is one thing that is really annoying. Most links are made with a <div onClick=...> instead of a <a href=...>. This means that the browser can not distinguish between text and links and will show the wrong context menu on right click. There is no way to copy a link without first opening it.

InvenTree is using react-router. All links should be made with a <Link to=...> instead of the useNavigate() hook.

Steps to Reproduce

  1. Right click (almost) any link
  2. The browser will show the wrong context menu

Expected behaviour

The browser should display the correct context menu.

Deployment Method

Docker

Version Information

1.4.0

Try to reproduce on the demo site

I tried to reproduce

Is the bug reproducible on the demo site?

Reproducible

Relevant log output

bash