mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Table row click fix (#6766)
* Fix typo in URL spec * Fix navigation into new tab - Disable noreferrer, else redirected to index page
This commit is contained in:
parent
7227670142
commit
eecda20b83
@ -520,9 +520,10 @@ export function InvenTreeTable<T = any>({
|
||||
let url = getDetailUrl(tableProps.modelType, record.pk);
|
||||
|
||||
// Should it be opened in a new tab?
|
||||
if (event?.ctrlKey || event?.shiftKey || event?.buttons & 0x04) {
|
||||
if (event?.ctrlKey || event?.shiftKey) {
|
||||
// Open in a new tab
|
||||
window.open(`/${base_url}{url}`, '_blank', 'noreferrer');
|
||||
url = `/${base_url}${url}`;
|
||||
window.open(url, '_blank');
|
||||
} else {
|
||||
// Navigate internally
|
||||
navigate(url);
|
||||
|
Loading…
x
Reference in New Issue
Block a user