Dashboard widget: open document in new tab/window instead of replacing current Nextcloud directory listing
Is your feature request related to a problem? Please describe. opening a file with collabora replaces the current directory listing which makes it impossible to open to (similar looking) files from the same NC window.
Describe the solution you'd like the file should open a new tab/window mimicking the behaviour of a file manager which also opens the app in a new window.
Describe alternatives you've considered a cumbersome workaround is to duplicate first the directory view in nextcloud and open the file in the duplicated tab/window -
Hint just insert the bold code.... <a href="https://www.example.com" target="_blank" rel="noopener noreferrer">
seems to be same/duplicated as #31
This appears to have been an issue since 2018 and was apparently addressed at one time by implementing ctrl click to open a file in a new tab. Then (as of NC28?) that ctrl click functionality was dropped - since then it seems to be where the tumbleweed go... I really hope this can get escalated as people I am trying to get to drop Google Docs are just saying it's a total showstopper for them. After all it's not just the lack of ability to open another file at the same time, they can't open another NC app either (and keep the file they are working on open) for example the email app which they might need to refer to?
IMO open a new tab/window should be the default behaviour. IMO no other native file manager opens a document inside replacing the file manager prohibiting the use of the filemanager until the document is closed.
just a hint. in the first window.open the "_self" should be probably be replaced by "_blank"
Just tested with latest master as well as with Nextcloud 31.0.8, and both Ctrl+Click and Middle click work to open documents in new tabs.
This was fixed back then with both these pull requests:
- https://github.com/nextcloud/server/pull/42457
- https://github.com/nextcloud/server/pull/45571
Can you double check and confirm if this is indeed still an issue? Cause I can not reproduce. cc @blizzz @juliusknorr
Hi - I am on 31.0.9 and this is what I see is this.
If I ctrl/middle click on the Files App icon in the top of screen menu that does open the 'files folders' view in a new tab, instead of replacing the current tab.
If I ctrl/middle click on a file in the 'files folders' the behaviour is unexpected - it does not open the file in the associated editor, instead it opens another new tab with the same 'files folders' view, but in that tab if I then left click on a file to open it... the immediate 'download' of the file occurs, not the opening.
As usual these things are not so easy to describe!
/Really the desired action would be for the Files icon to open as normal (or in a new tab if chosen) but the actual files to open in their associated editor, but in a new tab?/
I only used the emphasis/underline to hopefully make it easier to understand - not 'shouting' in any way 🙂
On 17/09/2025 14:52, Jan C. Borchardt wrote:
jancborchardt left a comment (nextcloud/richdocuments#4643) Just tested with latest master as well as with Nextcloud 31.0.8, and both Ctrl+Click and Middle click work to open documents in new tabs. Th DuckDuckGo removed one tracker. More https://duckduckgo.com/-QrV4yG4ZMP-ABkM1zl5a4Iz2_lUer7Xsix6XixLtDygpYkUWIAY_Lu1ghZ0CIKcmdv72i2nRmg7ihAe7cQ73UyMVFa1D-0yFcmmTo4hRUEaAUA4SDWAjdimyDY1WmBKxDdBxORp5EwVzFic1V53O6F1dfJU9yBCriXVmW--5Ly07rArX-EUKbaJLSgO302XL81k3neBR5YSAPE-MmUL3xMtU0NvRCuSOaGxZAJOYCP2qhDwztnCeTl2ZXPmjQrQF3kmRJKkI9y9fAAiukTu75zQeGNTzOWh8uce-DNG3xZxILnomZOhZu6zeaGSIg2mzxdgmLuRuUxjqa-q3AhktvoYGKX_GV4ZaYRfpPShrz4-SurRm9l7Zb1dplMjrtMLkssZ7ebWtntGpdx06Tvr8cejMxynbVpsY4Vpkfag7PoetccGT-0-rnqpiq2SC3VrYWHB4HHsWcT09w8_TuJyPFv5KQdTVIuisxKVQQ4pl9P7Aw
jancborchardt left a comment (nextcloud/richdocuments#4643) https://github.com/nextcloud/richdocuments/issues/4643#issuecomment-3303110282
Just tested with latest master as well as with Nextcloud 31.0.8, and both |Ctrl+Click| and |Middle click| work to open documents in new tabs.
This was fixed back then with both these pull requests:
- nextcloud/server#42457 https://github.com/nextcloud/server/pull/42457
- nextcloud/server#45571 https://github.com/nextcloud/server/pull/45571
Can you double check and confirm if this is indeed still an issue? Cause I can not reproduce. cc @blizzz https://github.com/blizzz @juliusknorr https://github.com/juliusknorr
— Reply to this email directly, view it on GitHub https://github.com/nextcloud/richdocuments/issues/4643#issuecomment-3303110282, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFPWYXWNZ3AUKG4PEXZLN3T3TFRQZAVCNFSM6AAAAAB2BOOFNSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGMBTGEYTAMRYGI. You are receiving this because you commented.Message ID: @.***>
--=J503ykNEXkAhNxp8ly3RYC= Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Hi - I am on 31.0.9 and this is what I see is this.
If I ctrl/middle click on the Files App icon in
the top of screen menu that does open the 'files folders' view in
a new tab, instead of replacing the current tab.
If I ctrl/middle click on a file in the 'files folders' the behaviour is unexpected - it does not open the file in the associated editor, instead it opens another new tab with the same 'files folders' view, but in that tab if I then left click on a file to open it... the immediate 'download' of the file occurs, not the opening.
As usual these things are not so easy to describe!
Really the desired action would be for the Files icon to open as normal (or in a new tab if chosen) but the actual files to open in their associated editor, but in a new tab?
I only used the emphasis/underline to hopefully make it easier to understand - not 'shouting' in any way 🙂
</div> <div style="display: flex; flex-wrap: wrap; white-space: pre-wrap; align-items: center; "><img height="20" width="20" style="border-radius:50%; margin-right: 4px;" decoding="async" src="https://avatars.githubusercontent.com/u/925062?s=20&v=4" moz-do-not-send="true"><strong>jancborchardt</strong> left a comment <a href="https://github.com/nextcloud/richdocuments/issues/4643#issuecomment-3303110282" moz-do-not-send="true">(nextcloud/richdocuments#4643)</a></div> <p dir="auto">Just tested with latest master as well as with Nextcloud 31.0.8, and both <code class="notranslate">Ctrl+Click</code> and <code class="notranslate">Middle click</code> work to open documents in new tabs.</p> <p dir="auto">This was fixed back then with both these pull requests:</p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2053896757" data-permission-text="Title is private" data-url="https://github.com/nextcloud/server/issues/42457" data-hovercard-type="pull_request" data-hovercard-url="/nextcloud/server/pull/42457/hovercard" href="https://github.com/nextcloud/server/pull/42457" moz-do-not-send="true">nextcloud/server#42457</a></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2323835971" data-permission-text="Title is private" data-url="https://github.com/nextcloud/server/issues/45571" data-hovercard-type="pull_request" data-hovercard-url="/nextcloud/server/pull/45571/hovercard" href="https://github.com/nextcloud/server/pull/45571" moz-do-not-send="true">nextcloud/server#45571</a></li> </ul> <p dir="auto">Can you double check and confirm if this is indeed still an issue? Cause I can not reproduce. cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/blizzz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/blizzz" ***@***.***</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/juliusknorr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/juliusknorr" ***@***.***</a></p> <p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br> Reply to this email directly, <a href="https://github.com/nextcloud/richdocuments/issues/4643#issuecomment-3303110282" moz-do-not-send="true">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/BFPWYXWNZ3AUKG4PEXZLN3T3TFRQZAVCNFSM6AAAAAB2BOOFNSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGMBTGEYTAMRYGI" moz-do-not-send="true">unsubscribe</a>.<br> You are receiving this because you commented.<span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><nextcloud/richdocuments/issues/4643/3303110282</span><span>@</span><span>github</span><span>.</span><span>com></span></span> </p> <script type="application/ld+json">[{ @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/nextcloud/richdocuments/issues/4643#issuecomment-3303110282", "url": "https://github.com/nextcloud/richdocuments/issues/4643#issuecomment-3303110282", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
--=_J503ykNEXkAhNxp8ly3RYC_=--
Hi @nigelharpur :)
Really the desired action would be for the Files icon to open as normal (or in a new tab if chosen) but the actual files to open in their associated editor, but in a new tab?
Yes, this is precisely what works for me in 31.0.8 as well as current master (upcoming 32).
but in that tab if I then left click on a file to open it... the immediate 'download' of the file occurs, not the opening.
But it does open Nextcloud Office if you just click on the document directly? Cause usually download only gets triggered if there is no handler configured for the filetype.
Hmmm... definitely different for me. Just tested again and followed this scenario:
Opened Nextcloud in dashboard view - normal left clicked on Files icon - Files view opened (replacing dashboard) - normal left clicked on file Test.odt and it opened in the Writer editor correctly (replacing the Files view) - all as expected, all remained in the single original browser tab.
Then repeated as above except this time I ctrl clicked on Test.odt and instead of opening in the editor in a new tab, it opened a seemingly duplicated new tab of the same files view - if I then normal left click on the Test.odt in the 'new' tab, it just downloads and does not open in the editor.
Sorry for delays in replies, am doing more than one thing at once (sometimes fatal for the male of the species you know 😉)
On 17/09/2025 15:28, Jan C. Borchardt wrote:
jancborchardt left a comment (nextcloud/richdocuments#4643) Hi @nigelharpur :) Really the desired action would be for the Files icon to open as normal (or in a new tab if chosen) but the actual files DuckDuckGo removed one tracker. More https://duckduckgo.com/-RyXL53odI7a1BgDsLamhsm1uIj7Ma2RdHZGNBW2NwSa2olUGeBtbU1BLpqUJnN7cBA5kWdCJEk6wt2wFyCiS-T-zgmNNzbFXB4qf-6BP2P0bREHkoueORlq5j6bFyop0mD6_gIMczcyl2ks9VWVG4HMVh8Dwfh_hldGGuEXKX3oq4-Pknq0ZvbeKUE5ZWQvbKlEyQpSaHbKp56Wc30UUZvYfzw6w3HapsU2VpgWaQ_Kru9Re2zw1O7LyUSUdTk_HmEEXC8YexxWFjH9_cOPk7gcz1Z-ysEU1aLorERlkEPK5fT-
jancborchardt left a comment (nextcloud/richdocuments#4643) https://github.com/nextcloud/richdocuments/issues/4643#issuecomment-3303280953
Hi @nigelharpur https://github.com/nigelharpur :)
Really the desired action would be for the Files icon to open as normal (or in a new tab if chosen) but the //actual files// to open in their associated editor, but in a /new tab/?Yes, this is precisely what works for me in 31.0.8 as well as current master (upcoming 32).
but in that tab if I then left click on a file to //open// it... the immediate 'download' of the file occurs, not the opening.But it does open Nextcloud Office if you just click on the document directly? Cause usually download only gets triggered if there is no handler configured for the filetype.
— Reply to this email directly, view it on GitHub https://github.com/nextcloud/richdocuments/issues/4643#issuecomment-3303280953, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFPWYXXXVB3BY65OMPHZ7S33TFVYJAVCNFSM6AAAAAB2BOOFNSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGMBTGI4DAOJVGM. You are receiving this because you were mentioned.Message ID: @.***>
--=OyXzennDeVVWCDwmlmuggD= Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Hmmm... definitely different for me. Just tested again and followed this scenario:
Opened Nextcloud in dashboard view - normal left clicked on Files
icon - Files view opened (replacing dashboard) - normal left
clicked on file Test.odt and it opened in the Writer
editor correctly (replacing the Files view) - all as expected, all
remained in the single original browser tab.
Then repeated as above except this time I ctrl clicked on Test.odt and instead of opening in the editor in a new tab, it opened a seemingly duplicated new tab of the same files view - if I then normal left click on the Test.odt in the 'new' tab, it just downloads and does not open in the editor.
Sorry for delays in replies, am doing more than one thing at once (sometimes fatal for the male of the species you know 😉)
</div> <div style="display: flex; flex-wrap: wrap; white-space: pre-wrap; align-items: center; "><img height="20" width="20" style="border-radius:50%; margin-right: 4px;" decoding="async" src="https://avatars.githubusercontent.com/u/925062?s=20&v=4" moz-do-not-send="true"><strong>jancborchardt</strong> left a comment <a href="https://github.com/nextcloud/richdocuments/issues/4643#issuecomment-3303280953" moz-do-not-send="true">(nextcloud/richdocuments#4643)</a></div> <p dir="auto">Hi <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nigelharpur/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nigelharpur" ***@***.***</a> :)</p> <blockquote> <p dir="auto">Really the desired action would be for the Files icon to open as normal (or in a new tab if chosen) but the <em><em>actual files</em></em> to open in their associated editor, but in a <em>new tab</em>?</p> </blockquote> <p dir="auto">Yes, this is precisely what works for me in 31.0.8 as well as current master (upcoming 32).</p> <blockquote> <p dir="auto">but in that tab if I then left click on a file to <em><em>open</em></em> it... the immediate 'download' of the file occurs, not the opening.</p> </blockquote> <p dir="auto">But it does open Nextcloud Office if you just click on the document directly?<br> Cause usually download only gets triggered if there is no handler configured for the filetype.</p> <p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br> Reply to this email directly, <a href="https://github.com/nextcloud/richdocuments/issues/4643#issuecomment-3303280953" moz-do-not-send="true">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/BFPWYXXXVB3BY65OMPHZ7S33TFVYJAVCNFSM6AAAAAB2BOOFNSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGMBTGI4DAOJVGM" moz-do-not-send="true">unsubscribe</a>.<br> You are receiving this because you were mentioned.<span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><nextcloud/richdocuments/issues/4643/3303280953</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p> <script type="application/ld+json">[{ @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/nextcloud/richdocuments/issues/4643#issuecomment-3303280953", "url": "https://github.com/nextcloud/richdocuments/issues/4643#issuecomment-3303280953", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
--=_OyXzennDeVVWCDwmlmuggD_=--
Thanks for the context that this happens from the Dashboard, I can indeed also reproduce this with the "Recommended files" widget.
@blizzz @skjnldsv cause I am not sure whether this is an issue in Office or in the recommendations app.
No problem - happy to help (obvs not with coding).
On 17/09/2025 16:31, Jan C. Borchardt wrote:
jancborchardt left a comment (nextcloud/richdocuments#4643) Thanks for the context that this happens from the Dashboard, I can indeed also reproduce this with the "Recommended files" widget. @blizzz @ DuckDuckGo removed one tracker. More https://duckduckgo.com/-XypbVbz5NhJM77HrFEGmB7nWGoy41WsbtyMExipa43DO9O56t3WIh0n7KBTCrRAUtSF_MExC1JR7hb_gCK8Ba-v1FCo40MMRWHzJ974J8w_DaJA8mlnjgJ1tR9NHdUUqTBtHkDDX03Yi7TWOqrKpWBRM2PexiG_xkuhDTcL6X4Ia8-PkLqkZrReyfTrnJdN95hpLR2SUmDCEdZUQizZFlIzj8e7dGx2qbFNlY0DdIZpF3fo3Zu0Kzd-C6LpwjcpGuvbJf3goLLfmSB6e8ffpzgMjxb-SEHS1SJorMSlUEMMZfR-wM
jancborchardt left a comment (nextcloud/richdocuments#4643) https://github.com/nextcloud/richdocuments/issues/4643#issuecomment-3303548572
Thanks for the context that this happens from the Dashboard, I can indeed also reproduce this with the "Recommended files" widget.
@blizzz https://github.com/blizzz @skjnldsv https://github.com/skjnldsv cause I am not sure whether this is an issue in Office or in the recommendations app.
— Reply to this email directly, view it on GitHub https://github.com/nextcloud/richdocuments/issues/4643#issuecomment-3303548572, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFPWYXSISRIK5I42GHQNWUD3TF5E5AVCNFSM6AAAAAB2BOOFNSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGMBTGU2DQNJXGI. You are receiving this because you were mentioned.Message ID: @.***>
--=ezWd2ljlDm8kyX+uj+8krZ= Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
No problem - happy to help (obvs not with coding).
</div> <div style="display: flex; flex-wrap: wrap; white-space: pre-wrap; align-items: center; "><img height="20" width="20" style="border-radius:50%; margin-right: 4px;" decoding="async" src="https://avatars.githubusercontent.com/u/925062?s=20&v=4" moz-do-not-send="true"><strong>jancborchardt</strong> left a comment <a href="https://github.com/nextcloud/richdocuments/issues/4643#issuecomment-3303548572" moz-do-not-send="true">(nextcloud/richdocuments#4643)</a></div> <p dir="auto">Thanks for the context that this happens from the Dashboard, I can indeed also reproduce this with the "Recommended files" widget.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/blizzz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/blizzz" ***@***.***</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/skjnldsv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/skjnldsv" ***@***.***</a> cause I am not sure whether this is an issue in Office or in the recommendations app.</p> <p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br> Reply to this email directly, <a href="https://github.com/nextcloud/richdocuments/issues/4643#issuecomment-3303548572" moz-do-not-send="true">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/BFPWYXSISRIK5I42GHQNWUD3TF5E5AVCNFSM6AAAAAB2BOOFNSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGMBTGU2DQNJXGI" moz-do-not-send="true">unsubscribe</a>.<br> You are receiving this because you were mentioned.<span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><nextcloud/richdocuments/issues/4643/3303548572</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p> <script type="application/ld+json">[{ @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/nextcloud/richdocuments/issues/4643#issuecomment-3303548572", "url": "https://github.com/nextcloud/richdocuments/issues/4643#issuecomment-3303548572", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
--=_ezWd2ljlDm8kyX+uj+8krZ_=--