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
  • Brite
  • 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 - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. YOURLS
  3. /admin attempts to redirect to an internal port

/admin attempts to redirect to an internal port

Scheduled Pinned Locked Moved YOURLS
11 Posts 5 Posters 135 Views 5 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.
  • jdaviescoatesJ Offline
    jdaviescoatesJ Offline
    jdaviescoates
    wrote last edited by
    #2

    I hadn't noticed but I seem to have this issue too. Something must've changed since I last created a shortlink link on 3 Dec.

    I use Cloudron with Gandi & Hetzner

    1 Reply Last reply
    0
    • jamesJ Offline
      jamesJ Offline
      james
      Staff
      wrote last edited by
      #3

      Hello @karlemilnikka and @jdaviescoates

      I have been unable to reproduce this issue from a fresh @yourls installation.
      Please share the following details:

      • app version from dashboard app view information
      • user management option (cloudron or self-managed)
      • date of installation from dashboard app view information
      • content of the /app/data/user/config.php via. https://paste.cloudron.io/ with redacted sensitive details
      1 Reply Last reply
      0
      • jdaviescoatesJ Offline
        jdaviescoatesJ Offline
        jdaviescoates
        wrote last edited by
        #4

        I'll check when I can. FYI /admin/ with trailing slash works fine.

        I use Cloudron with Gandi & Hetzner

        1 Reply Last reply
        2
        • jamesJ Offline
          jamesJ Offline
          james
          Staff
          wrote last edited by
          #5

          I have looked into the code of @yourls, and it seems it was always /admin/ with a trailing /.
          Also, the linked admin button in Cloudron links to /admin/ and not /admin.

          K jdaviescoatesJ 2 Replies Last reply
          1
          • K Offline
            K Offline
            karlemilnikka
            wrote last edited by karlemilnikka
            #6

            Thanks for looking into it, @james .

            The situation is the same for me as for @jdaviescoates . Everything works as intended if I enter the address with a trailing slash. The issue only occurs when I donโ€™t include the slash.

            I run two Yourls instances with the same issue. They are configured the same way.

            • App version: Yourls 1.10.2
            • Package version: org.yourls.cloudronapp@1.11.2
            • User management option: Yourlsโ€™ own (not Cloudron)
            • Date of installation: 2025-12-31
            • https://paste.cloudron.io/lixuxaqedo.php
            1 Reply Last reply
            1
            • jamesJ james

              I have looked into the code of @yourls, and it seems it was always /admin/ with a trailing /.
              Also, the linked admin button in Cloudron links to /admin/ and not /admin.

              K Offline
              K Offline
              karlemilnikka
              wrote last edited by
              #7

              @james Just a quick update. The issue persists after upgrading to v1.11.3.

              1 Reply Last reply
              1
              • J Offline
                J Offline
                joseph
                Staff
                wrote last edited by
                #8

                @karlemilnikka can you write to us at support@cloudron.io . We can debug what is going on. We are unable to reproduce the issue ourselves .

                1 Reply Last reply
                0
                • jamesJ james

                  I have looked into the code of @yourls, and it seems it was always /admin/ with a trailing /.
                  Also, the linked admin button in Cloudron links to /admin/ and not /admin.

                  jdaviescoatesJ Offline
                  jdaviescoatesJ Offline
                  jdaviescoates
                  wrote last edited by jdaviescoates
                  #9

                  @james said in /admin attempts to redirect to an internal port:

                  /admin

                  @joseph surely if you just go to /admin without the trailing slash, it happens, no?

                  https://yourls.demo.cloudron.io/admin - just installed yourls on the demo and it happens there.

                  TBH I don't think it's a big deal, it had never accidentally happened to me, but does happen if I manually left the trailing slash off. But normally I jusylt start typing my yourls url in the browser and my browser history auto-completes the full correct url with the trailing slash.

                  I use Cloudron with Gandi & Hetzner

                  1 Reply Last reply
                  0
                  • girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote last edited by girish
                    #10

                    I investigated this to understand why this happens. Just idle curiosity... Turns out we don't set ServerName in the vhost configs. This is required for mod_dir to work. A ServerName in the global config also gets rid of the whole server name not set warning in all our PHP apps. I pushed a change to all the packages.

                    For yourls, the redirect from admin to admin/ should work now.

                    jdaviescoatesJ 1 Reply Last reply
                    3
                    • girishG girish

                      I investigated this to understand why this happens. Just idle curiosity... Turns out we don't set ServerName in the vhost configs. This is required for mod_dir to work. A ServerName in the global config also gets rid of the whole server name not set warning in all our PHP apps. I pushed a change to all the packages.

                      For yourls, the redirect from admin to admin/ should work now.

                      jdaviescoatesJ Offline
                      jdaviescoatesJ Offline
                      jdaviescoates
                      wrote last edited by jdaviescoates
                      #11

                      @girish great that a small quirk/ annoyance with one app has led to a small improvement to all PHP apps on Cloudron ๐Ÿ™‚

                      I use Cloudron with Gandi & Hetzner

                      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