#12428 Link in staging distgit instance leads to prod auth
Closed: Fixed by lenkaseg. Opened by lenkaseg.

Describe what you would like us to do:


The button for adding members into distgit group leads to authentication on production instance. Correct the link to respect the stg/prod environment.

Check if there's more links in distgit that would cross the stg/prod environment.

When do you need this to be done by? (YYYY/MM/DD)


Not urgent.

Screenshot_From_2025-02-28_09-34-58.png


This also happens when trying to resent the password in .stg. It routes to the prod password reset.
(in case that can be fixed in a similar way/same source).

Metadata Update from @zlopez:
- Issue priority set to: Waiting on Assignee (was: Needs Review)
- Issue tagged with: Needs investigation, low-gain

This either means that there is something wrongly configured in the staging deployment or some links are hardcoded in the application. In either case it needs some investigation to find out the cause of this.

I investigated this, it does look to be hardcoded into the application.

See:
https://github.com/Pagure/pagure/blob/baccf9c6877c9b07da7e0a00874ee81ba4fae781/pagure/themes/srcfpo/templates/group_info.html#L77

Eh, and it originates from my commit 4 years ago...fixing :/

ok, so where is this to be fixed? and is there a upstream link? if so, I think we can close this upstream?

Here is the fix: https://pagure.io/pagure/pull-request/5519

Metadata Update from @lenkaseg:
- Issue assigned to lenkaseg

So, thats likely to land with the next pagure release. ;( I have no idea when that might be...

Do we want to try and do a local hotfix in ansible in the mean time?

@lenkaseg Could you do the local hotfix in ansible, so we don't need to wait for the next pagure release?

I will look into it!

Here is the ansible hotfix: https://pagure.io/fedora-infra/ansible/pull-request/2780
Review please, I tried to do it as I saw it done in other places in ansible, but not sure.

Metadata Update from @zlopez:
- Issue untagged with: Needs investigation
- Issue tagged with: low-trouble

Another PR for distgit here: https://pagure.io/fedora-infra/ansible/pull-request/2786

Issue seems to be fixed!

Screenshot_From_2025-08-11_17-44-27.png

Metadata Update from @lenkaseg:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

Metadata