[PR #3773] [MERGED] Set default profile-web-page-url in headers #5527

Closed
opened 2026-10-31 20:47:34 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/3773
Author: @nebulosa2007
Created: 2/9/2026
Status: ✅ Merged
Merged: 2/9/2026
Merged by: @MHSanaei

Base: main ← Head: subprofileurl


📝 Commits (1)

  • 2ecd073 refactor: set default ProfileUrl

📊 Changes

1 file changed (+11 additions, -3 deletions)

View changed files

📝 sub/subController.go (+11 -3)

📄 Description

What is the pull request?

A minor improvement: if Profile URL is not set in the settings, send the profile-web-page-url header with a link to the subscription. If it is set, send it as is.

Before:

curl -I ...
...
< profile-web-page-url: https://mysite.com/sub/jnfkjnfeknferjfnrkj // dynamic header from nginx

After:

curl -I ...
...
< profile-web-page-url: https://mysite.com/sub/jnfkjnfeknferjfnrkj // dynamic header from panel (nginx not needed)

or

curl -I ...
...
< profile-web-page-url: https://stat.mysite.com // static header from panel (it's set in settings)

Which part of the application is affected by the change?

  • Frontend
  • Backend

Type of Changes

  • Bug fix
  • New feature
  • Refactoring
  • Other

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/3773 **Author:** [@nebulosa2007](https://github.com/nebulosa2007) **Created:** 2/9/2026 **Status:** ✅ Merged **Merged:** 2/9/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `subprofileurl` --- ### 📝 Commits (1) - [`2ecd073`](https://github.com/MHSanaei/3x-ui/commit/2ecd07370cee444618a713205e7d5971de29e0c4) refactor: set default ProfileUrl ### 📊 Changes **1 file changed** (+11 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `sub/subController.go` (+11 -3) </details> ### 📄 Description ## What is the pull request? A minor improvement: if `Profile URL` is not set in the settings, send the `profile-web-page-url` header with a link to the subscription. If it is set, send it as is. Before: ``` curl -I ... ... < profile-web-page-url: https://mysite.com/sub/jnfkjnfeknferjfnrkj // dynamic header from nginx ``` After: ``` curl -I ... ... < profile-web-page-url: https://mysite.com/sub/jnfkjnfeknferjfnrkj // dynamic header from panel (nginx not needed) or curl -I ... ... < profile-web-page-url: https://stat.mysite.com // static header from panel (it's set in settings) ``` ## Which part of the application is affected by the change? - [ ] Frontend - [x] Backend ## Type of Changes - [ ] Bug fix - [ ] New feature - [x] Refactoring - [ ] Other --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:47:34 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5527
No description provided.