/admin attempts to redirect to an internal port
-
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.phpvia. https://paste.cloudron.io/ with redacted sensitive details
-
I'll check when I can. FYI /admin/ with trailing slash works fine.
-
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
-
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.@james Just a quick update. The issue persists after upgrading to v1.11.3.
-
@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 .
-
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.@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 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.
-
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.
@girish great that a small quirk/ annoyance with one app has led to a small improvement to all PHP apps on Cloudron

-
Thanks @girish . I can confirm that the bug has been addressed.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login