Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bookworm] Android shortcuts to homescreen or pinned tabs are redirected to the user portal #2493

Open
nicofrand opened this issue Dec 3, 2024 · 7 comments
Labels
🚪 SSO 👾 bug Something isn't working

Comments

@nicofrand
Copy link

Describe the bug

There are two cases where this happens:

  1. I have a shortcut on my android's homescreen to sub.domain.tld (managed by my yunohost, as well as domain.tld).
  2. I have a pinned tab to sub.domain.tld in my browser

Sometimes I need to authenticate, which is normal. Once authenticated I am redirected to domain.tld/sso/portal (or something like that) whereas I want to stay (or go back to) on sub.domain.tld. This is particularly important for webapps.

I then need to click on the app (in the user portal) I initially wanted, which is annoying.

This was not happening before Yunohost 12.

Context

  • Hardware: VPS bought online
  • YunoHost version: 12.0.7
  • I have access to my server: Through SSH | through the webadmin | direct access via keyboard / screen | ...
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no

To reproduce

Pin a tab, or add a shortcut to your homescreen, from a subdomain belonging to your Yunohost. Then wait for your session to expire, launch this shortcut/tab and authenticate.

Expected behavior

To remain on the URL I went to in the first place (before authentication).

Logs

I don't know what logs I should provide?

@nicofrand nicofrand added the 👾 bug Something isn't working label Dec 3, 2024
@OniriCorpe
Copy link
Member

duplicate of #2474

@OniriCorpe OniriCorpe closed this as not planned Won't fix, can't repro, duplicate, stale Dec 3, 2024
@nicofrand
Copy link
Author

@OniriCorpe #2474 is different. Here, my main domain is hosted on the same server.

@nicofrand
Copy link
Author

nicofrand commented Dec 4, 2024

In /etc/ssowat/config.json:

{
    [...]
    "domain_portal_urls": {
        "annonces.domain.tld": "domain.tld/yunohost/sso",
        "blog.domain.tld": "domain.tld/yunohost/sso",
        "cal.domain.tld": "domain.tld/yunohost/sso",
        "code.domain.tld": "domain.tld/yunohost/sso",
        "cv.domain.tld": "domain.tld/yunohost/sso",
        "default": "/yunohost/admin",
        "demo.domain.tld": "domain.tld/yunohost/sso",
        "k.domain.tld": "domain.tld/yunohost/sso",
        "mail.domain.tld": "domain.tld/yunohost/sso",
        "matrix.domain.tld": "domain.tld/yunohost/sso",
        "misc.domain.tld": "domain.tld/yunohost/sso",
        "nc.domain.tld": "domain.tld/yunohost/sso",
        "domain.tld": "domain.tld/yunohost/sso",
        "office.domain.tld": "domain.tld/yunohost/sso",
        "pix.domain.tld": "domain.tld/yunohost/sso",
        "rss.domain.tld": "domain.tld/yunohost/sso",
        "stats.domain.tld": "domain.tld/yunohost/sso",
        "wb.domain.tld": "domain.tld/yunohost/sso"
    },
    [...]
}

@nicofrand
Copy link
Author

Editing /etc/ssowat/conf.persistent.json by copying the domain_portal_urls to use the subdomain instead of root domain fixes the issue. But I don't think I should do it manually.

Maybe the info can help solve the issue though?

@nicofrand
Copy link
Author

My previous answer is actually not the solution: while it seems to solve the issue when logged out, it breaks the behaviour when logged: the portal just displays a message saying there are no apps on this domain.

@Josue-T
Copy link

Josue-T commented Jan 6, 2025

Hello,

I confirm I've the same issue.

@Thatoo
Copy link

Thatoo commented Jan 15, 2025

I confirm this issue also in android and I have something similar on desktop with searx : YunoHost-Apps/searxng_ynh#363 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚪 SSO 👾 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants