Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Feature Requests
  3. Prevent app from opening in new tab?

Prevent app from opening in new tab?

Scheduled Pinned Locked Moved Feature Requests
dashboard
15 Posts 7 Posters 2.3k Views 7 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R random_eric

    @timconsidine
    As far as I know, this only happens with cloudron.
    Does that mean that when you click on an app, it does not open in a new tab for you?

    timconsidineT Offline
    timconsidineT Offline
    timconsidine
    App Dev
    wrote on last edited by
    #4

    @random_eric yes it does open in new tab for me, but I thought that was the function of my browser (that suits my use case, but I understand maybe not yours).

    @random_eric said in Prevent app from opening in new tab?:

    even though I just opened a new tab specifally to go in to an app

    I didn't understand this. You mean right click and open in new tab ?

    R 1 Reply Last reply
    0
    • timconsidineT timconsidine

      @random_eric yes it does open in new tab for me, but I thought that was the function of my browser (that suits my use case, but I understand maybe not yours).

      @random_eric said in Prevent app from opening in new tab?:

      even though I just opened a new tab specifally to go in to an app

      I didn't understand this. You mean right click and open in new tab ?

      R Offline
      R Offline
      random_eric
      App Dev
      wrote on last edited by
      #5

      @timconsidine
      My setup is this:
      The tew tab in my browser opens the "my.cloudron.app" page / dashboard.

      So everytime I open a new tab, I'm presented the cloudron app page.
      Then, from this new tab, I just want to click to open the app in the current tab that I just created, not another new tab.

      timconsidineT 1 Reply Last reply
      0
      • R random_eric

        @timconsidine
        My setup is this:
        The tew tab in my browser opens the "my.cloudron.app" page / dashboard.

        So everytime I open a new tab, I'm presented the cloudron app page.
        Then, from this new tab, I just want to click to open the app in the current tab that I just created, not another new tab.

        timconsidineT Offline
        timconsidineT Offline
        timconsidine
        App Dev
        wrote on last edited by
        #6

        @random_eric which browser ?

        1 Reply Last reply
        0
        • R random_eric

          @timconsidine
          As far as I know, this only happens with cloudron.
          Does that mean that when you click on an app, it does not open in a new tab for you?

          jdaviescoatesJ Offline
          jdaviescoatesJ Offline
          jdaviescoates
          wrote on last edited by jdaviescoates
          #7

          @random_eric said in Prevent app from opening in new tab?:

          As far as I know, this only happens with cloudron.

          It happens because the links to app in the Dashboard are

          target="_blank"

          I don't think there is currently any way to easily change that.

          Edit: and @staff while I don't really fully understand this, it sounds like perhaps it'd just be better to not use target="_blank" at all (or at least adding rel="noopener" or rel="noreferrer" too), see:

          https://web.dev/external-anchors-use-rel-noopener/

          I use Cloudron with Gandi & Hetzner

          1 Reply Last reply
          1
          • robiR Offline
            robiR Offline
            robi
            wrote on last edited by
            #8

            The Cloudon UI maintains a connection to the backend server to keep things smooth and updated.

            If the links were not opening in a new tab, this would constantly break the backend connection for the UI.

            It's the same reason why forum software like discourse and nodebb direct clickable links to new tabs too (to maintain the connection in the current tab).

            So you can choose to use the dashboard differently, or create your own new dashboard and have your new tab page be that one that opens your apps in the same tab.

            Personally I have a Cloudron tab pinned and open new tabs from there. My new tab page is blank on purpose as it is the fastest loading tab and I get to type in what I want to visit quickly, which is way faster than waiting for a tab load plus mouse move + mouse click, keyboard->mouse context switch.

            Conscious tech

            1 Reply Last reply
            2
            • nebulonN Offline
              nebulonN Offline
              nebulon
              Staff
              wrote on last edited by
              #9

              That is an interesting topic. I can't remember that this was a conscious decision on our end but more just the way we expected it to behave, so this was never questioned. Of course technically we could basically just remove the target="_blank" and leave this to user to use middleclick or ctrl+leftclick for a new tab.

              Since this changes the dashboard behavior a bit and the fix is trivial, lets see if someone here brings further good arguments to leave it as is or not, then we can adjust this for the next version.

              girishG 1 Reply Last reply
              1
              • nebulonN nebulon

                That is an interesting topic. I can't remember that this was a conscious decision on our end but more just the way we expected it to behave, so this was never questioned. Of course technically we could basically just remove the target="_blank" and leave this to user to use middleclick or ctrl+leftclick for a new tab.

                Since this changes the dashboard behavior a bit and the fix is trivial, lets see if someone here brings further good arguments to leave it as is or not, then we can adjust this for the next version.

                girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #10

                @nebulon Without target=_blank the default behavior is to open in same tab i.e the new site will replace the dashboard ?

                1 Reply Last reply
                0
                • nebulonN Offline
                  nebulonN Offline
                  nebulon
                  Staff
                  wrote on last edited by
                  #11

                  Correct, changing behavior to that is what I assumed was this thread about. Basically this leaves the choice to the browser setting where ctrl+click and middleclick are I think the default for open in a new tab.

                  1 Reply Last reply
                  0
                  • robiR Offline
                    robiR Offline
                    robi
                    wrote on last edited by
                    #12

                    I wouldn't change the default, but perhaps have it as an option.

                    Conscious tech

                    R timconsidineT 2 Replies Last reply
                    2
                    • robiR robi

                      I wouldn't change the default, but perhaps have it as an option.

                      R Offline
                      R Offline
                      random_eric
                      App Dev
                      wrote on last edited by
                      #13

                      Having an option would be great.
                      Can this topic be moved to feature request?

                      humptydumptyH 1 Reply Last reply
                      1
                      • nebulonN nebulon moved this topic from Support on
                      • R random_eric

                        Having an option would be great.
                        Can this topic be moved to feature request?

                        humptydumptyH Offline
                        humptydumptyH Offline
                        humptydumpty
                        wrote on last edited by
                        #14

                        @random_eric alternatively, you could "pin" the dashboard page and make sure to have the "open previous tabs/session" enabled in the browser. That way you have one dashboard in a fixed position (first icon for me) and then either open or pin additional apps as needed.

                        5e65d8a8-c723-4b0b-8d48-782d7da7dc90-image.png

                        1 Reply Last reply
                        0
                        • robiR robi

                          I wouldn't change the default, but perhaps have it as an option.

                          timconsidineT Offline
                          timconsidineT Offline
                          timconsidine
                          App Dev
                          wrote on last edited by
                          #15

                          @robi said in Prevent app from opening in new tab?:

                          I wouldn't change the default

                          💯 %
                          Opening an app in a new tab is key productivity for me.
                          Would be more than little p***ed off for it not be available.

                          1 Reply Last reply
                          1
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Bookmarks
                          • Search