You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Most links in user interface are made with <div onClick=...> intead of <a href=...> #12527
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
Right click (almost) any link
The browser will show the wrong context menu
Expected behaviour
The browser should display the correct context menu.
I would not consider this a bug; this is an implementation detail that was not brought up during the nearly 1 year beta / feedback period and now after nearly 2 years being out it is mentioned once.
It certainly can be considered a request but seing that onClick is a pretty common pattern this would require a good chunk of work to change (and probably audit for in CI) now that everything was ported.
@matmair
I looked at the frontend source code. Some parts are easy to refactor. Other would be a pain to do.
I first looked at the Spotlight component, which I thought would be the easy one to refactor. The Spotlight is built on the Mantine Spotlight component, which have no support for a custom renderer. It seems to be a hassle to do custom markup. I would say it's not worth the work. At least not right now.
The thing I would like most is the InvenTreeTable component. It's built on the Mantine DataTable component. It has support for a custom render function for cells, which is already implemented by InvenTree. I played around a bit and have a somewhat working proof-of-concept. But this made me realize that this is not as easy as just some code refactor. This will also have an impact on the user interface and make it completely different. Maybe in a way that other people will dislike.
Take the "Parts" table as an example. Where should all the links go? At the moment everything goes to /part/123/details. Personally I think it would make more sense to link to different pages depending on the column. Wasn't this how it worked in the old UI?
Column
Link
Part, IPN
/part/123/details
Total Stock
/part/123/stock
Category
/part/category/123/parts
Units, Description, Virtual, Assembly
No link at all
Link
To the provided URL
Price Range
/part/123/pricing
Default Location
/stock/location/123/stock-items
Revision
I don't use revisions, so I'm not sure how this is supposed to work.
What do you think? I'm going to implement something that suits me. But I would of course prefer to have something that could also be sent upstream.
I do not think we would merge a piecemeal approach
Not linking to 20 different places from a single table was a deliberate choice as a lot of new/casual users were very confused by having so many different targets
If you hover the category coulmn in the parts list, you get a popup that shows info about the category. In that space the word "category" is by your cursor twice, and the name of the category is by your cursor twice... and when you click there it takes you to ... the part's detail page.
I want to add some perspective here as an existing InvenTree user who has only recently moved to the new UI.
I postponed upgrading for quite a long time because the old interface worked well for our workflow. I eventually upgraded mainly because I needed newer API functionality, not because I wanted to fundamentally change the way we work with InvenTree.
Unfortunately, the change in table navigation has turned out to be a major regression for us. In the old UI, items in tables behaved like actual links. That sounds like a small detail, but for a poweruser it has a huge impact on workflow speed.
From a BOM, I could simply click a component and immediately open that part. More importantly, because these were real links, I could use normal browser behaviour such as Ctrl-click to open several components in separate tabs and continue working through the BOM without constantly losing my current position.
That is an extremely more efficient workflow when you are actually working with InvenTree all day.
The same applies in many other places. In an order, there is a meaningful distinction between clicking the order itself and clicking the specific part within that order. In a BOM, there is a meaningful distinction between the assembly and the individual component. In stock, purchasing and sales views, there are many situations where the object shown in a specific column is the thing you actually want to open.
Those separate URLs are not clutter. They carry useful context. Removing that distinction forces the user into a much more linear workflow: open something (wait), navigate away, inspect it, go back (wait), find your position again, open the next item (wait), and repeat.
That is dramatically slower than: Ctrl-click several relevant items, keep the original table open, inspect each item in separate tabs, and close them when done.
For a poweruser, this difference is enormous. The current BOM behaviour is especially frustrating because the table already knows which Part each row refers to, but the normal navigation is explicitly disabled. So the information required to provide a direct link is there, but the UI intentionally prevents the user from using it.
I understand the argument that having multiple navigation targets in a table could potentially confuse new or casual users. But simplifying the interface for new users should not come at the cost of removing efficient workflows for power users.
In my opinion, this is solving the wrong problem.If discoverability for new users is a concern, that should be addressed through clearer styling, hover states, tooltips, or perhaps a user preference. Removing meaningful links altogether makes the application easier to understand only by making it less capable.
This is not merely a cosmetic preference. It directly affects productivity.
I recently upgraded mainly to gain newer API functionality, and now I find myself dealing with a completely different interaction model that actively slows down normal daily work. To the point that I am seriously considering reverting to the older InvenTree version, even though I would lose functionality I actually upgraded for, simply because the old UI supported our workflow much better.
I would strongly ask the maintainers to reconsider this design decision. Making it default is fine for me, but please make it optional turn on again.
Ideally, the UI should preserve normal browser behaviour as much as possible:
left click opens the object
Ctrl-click or middle-click opens it in a new tab
right click exposes the browser's normal link actions
different object columns can link to the object they actually represent
That behaviour is predictable, standard, and extremely efficient.
For a poweruser, the old behaviour was not confusing. It was one of the things that made InvenTree fast and practical to use.
I would strongly ask the maintainers to reconsider this design decision. Making the current behaviour default is fine for us, but please make it optional.
Nothing is gained or lost by the project from you using either version.
We welcome PRs that implement the requested changed behavior; you are asking for serious dev time to implement and test 2 separate control flow behaviors. This might seem easy but there is no single "make everything a link" switch.
We completely rewrote how InvenTree works with the UI refactor. This was years of cleaning up, removing security and audit pitfalls and making the API the powerful backbone of the whole ecosystem. Thankless work that was necessary for all the great new features and integration possibilities that we have nowadays.
We did this with 3 ppl with nearly no inputs and no design or UX feedback although we tried reaching out to the users for over a year. I am over this kind of couch football trainer discussion. If you do not like the changes: be active in the community or provide meaningful support by providing patches or working on a clear and defined UX strategy. Showing up 2 years later to complain is improving nothing. I do not care about words about "powerusers" anymore. I cared:
in March 2022 when I first asked for feedback on this
in July 2023 when we pinned a large issue with all the changes we needed to do above all issues
in August 2023 when we released a blog post asking for input
in September 2024 when I wrote a blog post warning that we are going to switch
and I cared maybe till a few months after September 2025 when we released 1.0 with the new UI
If this tool is of such importance to your productivity that an extra click is causing you pain you might want to be more proactive about it when the tools maintainers release communication over years about changing the UI.
I am sorry if this is a rambling reply but these kind of walls of text that provide a lot of stuff we should do are just demoralizing. We mostly get asked to implement stuff for free. Often never to hear again from the posters, even if it works, after we spent time to improve this free tool for free. OSS is not meant to be a one way street but it for this project mainly and I am done with that.
I understand your frustration, and I don't want my comments to come across as expecting free work. I genuinely value InvenTree and the work behind it. I did provide feedback earlier, but I deliberately left the new UI alone until recently because our production setup was still working well on the old interface.
At the same time, InvenTree is one of dozens of software packages i use. My time is limited too, and realistically I can provide feedback, but I cannot contribute code to every project i use.
I have also donated financially to InvenTree before, precisely because I value projects like this and understand that OSS should not be a one-way street. My comments were simply meant as user feedback after finally moving our production system to the new UI. I don't expect you personally to implement this now, I just wanted to explain why these changes matter to our workflow.
My earlier points about native links and browser navigation still stand. However, after spending more time with the new UI, we've found that much of the initial frustration was simply a matter of getting used to a different workflow.
We've adapted to it quite well by now, and although I still see the advantages of the old behaviour, we currently don't feel there's a strong enough reason to invest further effort into changing it.
I just wanted to share that perspective as well, since I think it's only fair to acknowledge when something turns out to be less problematic in practice than initially expected.
Activity
SchrodingersGat commentedon Jul 31, 2026
@chille can you please provide an example of some of the links you are looking at?
matmair commentedon Aug 1, 2026
I would not consider this a bug; this is an implementation detail that was not brought up during the nearly 1 year beta / feedback period and now after nearly 2 years being out it is mentioned once.
It certainly can be considered a request but seing that onClick is a pretty common pattern this would require a good chunk of work to change (and probably audit for in CI) now that everything was ported.
chille commentedon Aug 2, 2026
@SchrodingersGat
All the links in the Spotlight, for example.
@matmair
I looked at the frontend source code. Some parts are easy to refactor. Other would be a pain to do.
I first looked at the Spotlight component, which I thought would be the easy one to refactor. The Spotlight is built on the Mantine Spotlight component, which have no support for a custom renderer. It seems to be a hassle to do custom markup. I would say it's not worth the work. At least not right now.
The thing I would like most is the InvenTreeTable component. It's built on the Mantine DataTable component. It has support for a custom render function for cells, which is already implemented by InvenTree. I played around a bit and have a somewhat working proof-of-concept. But this made me realize that this is not as easy as just some code refactor. This will also have an impact on the user interface and make it completely different. Maybe in a way that other people will dislike.
Take the "Parts" table as an example. Where should all the links go? At the moment everything goes to /part/123/details. Personally I think it would make more sense to link to different pages depending on the column. Wasn't this how it worked in the old UI?
What do you think? I'm going to implement something that suits me. But I would of course prefer to have something that could also be sent upstream.
matmair commentedon Aug 2, 2026
I do not think we would merge a piecemeal approach
Not linking to 20 different places from a single table was a deliberate choice as a lot of new/casual users were very confused by having so many different targets
guest20 commentedon Aug 2, 2026
If you hover the category coulmn in the parts list, you get a popup that shows info about the category. In that space the word "category" is by your cursor twice, and the name of the category is by your cursor twice... and when you click there it takes you to ... the part's detail page.
This feels like it might confuse new users too
matmair commentedon Aug 2, 2026
@guest20 this way of arguing will get this discussion nowhere; but I will make a note to ignore you as a troll in the futurw
guest20 commentedon Aug 2, 2026
I'm literally a new user.
MIOsystems commentedon Sep 14, 2026
I want to add some perspective here as an existing InvenTree user who has only recently moved to the new UI.
I postponed upgrading for quite a long time because the old interface worked well for our workflow. I eventually upgraded mainly because I needed newer API functionality, not because I wanted to fundamentally change the way we work with InvenTree.
Unfortunately, the change in table navigation has turned out to be a major regression for us. In the old UI, items in tables behaved like actual links. That sounds like a small detail, but for a poweruser it has a huge impact on workflow speed.
From a BOM, I could simply click a component and immediately open that part. More importantly, because these were real links, I could use normal browser behaviour such as Ctrl-click to open several components in separate tabs and continue working through the BOM without constantly losing my current position.
That is an extremely more efficient workflow when you are actually working with InvenTree all day.
The same applies in many other places. In an order, there is a meaningful distinction between clicking the order itself and clicking the specific part within that order. In a BOM, there is a meaningful distinction between the assembly and the individual component. In stock, purchasing and sales views, there are many situations where the object shown in a specific column is the thing you actually want to open.
Those separate URLs are not clutter. They carry useful context. Removing that distinction forces the user into a much more linear workflow: open something (wait), navigate away, inspect it, go back (wait), find your position again, open the next item (wait), and repeat.
That is dramatically slower than: Ctrl-click several relevant items, keep the original table open, inspect each item in separate tabs, and close them when done.
For a poweruser, this difference is enormous. The current BOM behaviour is especially frustrating because the table already knows which Part each row refers to, but the normal navigation is explicitly disabled. So the information required to provide a direct link is there, but the UI intentionally prevents the user from using it.
I understand the argument that having multiple navigation targets in a table could potentially confuse new or casual users. But simplifying the interface for new users should not come at the cost of removing efficient workflows for power users.
In my opinion, this is solving the wrong problem.If discoverability for new users is a concern, that should be addressed through clearer styling, hover states, tooltips, or perhaps a user preference. Removing meaningful links altogether makes the application easier to understand only by making it less capable.
This is not merely a cosmetic preference. It directly affects productivity.
I recently upgraded mainly to gain newer API functionality, and now I find myself dealing with a completely different interaction model that actively slows down normal daily work. To the point that I am seriously considering reverting to the older InvenTree version, even though I would lose functionality I actually upgraded for, simply because the old UI supported our workflow much better.
I would strongly ask the maintainers to reconsider this design decision. Making it default is fine for me, but please make it optional turn on again.
Ideally, the UI should preserve normal browser behaviour as much as possible:
That behaviour is predictable, standard, and extremely efficient.
For a poweruser, the old behaviour was not confusing. It was one of the things that made InvenTree fast and practical to use.
I would strongly ask the maintainers to reconsider this design decision. Making the current behaviour default is fine for us, but please make it optional.
matmair commentedon Sep 14, 2026
Nothing is gained or lost by the project from you using either version.
We welcome PRs that implement the requested changed behavior; you are asking for serious dev time to implement and test 2 separate control flow behaviors. This might seem easy but there is no single "make everything a link" switch.
matmair commentedon Sep 14, 2026
We completely rewrote how InvenTree works with the UI refactor. This was years of cleaning up, removing security and audit pitfalls and making the API the powerful backbone of the whole ecosystem. Thankless work that was necessary for all the great new features and integration possibilities that we have nowadays.
We did this with 3 ppl with nearly no inputs and no design or UX feedback although we tried reaching out to the users for over a year. I am over this kind of couch football trainer discussion. If you do not like the changes: be active in the community or provide meaningful support by providing patches or working on a clear and defined UX strategy. Showing up 2 years later to complain is improving nothing. I do not care about words about "powerusers" anymore. I cared:
If this tool is of such importance to your productivity that an extra click is causing you pain you might want to be more proactive about it when the tools maintainers release communication over years about changing the UI.
I am sorry if this is a rambling reply but these kind of walls of text that provide a lot of stuff we should do are just demoralizing. We mostly get asked to implement stuff for free. Often never to hear again from the posters, even if it works, after we spent time to improve this free tool for free. OSS is not meant to be a one way street but it for this project mainly and I am done with that.
MIOsystems commentedon Sep 14, 2026
I understand your frustration, and I don't want my comments to come across as expecting free work. I genuinely value InvenTree and the work behind it. I did provide feedback earlier, but I deliberately left the new UI alone until recently because our production setup was still working well on the old interface.
At the same time, InvenTree is one of dozens of software packages i use. My time is limited too, and realistically I can provide feedback, but I cannot contribute code to every project i use.
I have also donated financially to InvenTree before, precisely because I value projects like this and understand that OSS should not be a one-way street. My comments were simply meant as user feedback after finally moving our production system to the new UI. I don't expect you personally to implement this now, I just wanted to explain why these changes matter to our workflow.
SchrodingersGat commentedon Oct 27, 2026
@chille please check out the changes in #13117 - note that the tables have not been touched, they require more consideration
MIOsystems commentedon Nov 9, 2026
Just a small update from our side.
My earlier points about native links and browser navigation still stand. However, after spending more time with the new UI, we've found that much of the initial frustration was simply a matter of getting used to a different workflow.
We've adapted to it quite well by now, and although I still see the advantages of the old behaviour, we currently don't feel there's a strong enough reason to invest further effort into changing it.
I just wanted to share that perspective as well, since I think it's only fair to acknowledge when something turns out to be less problematic in practice than initially expected.