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

[2.x] Persist non-standard ports in site URL #16201

Merged
merged 3 commits into from
Aug 10, 2022

Conversation

smg6511
Copy link
Collaborator

@smg6511 smg6511 commented Jun 3, 2022

What does it do?

Ensures that non-standard ports persist in the site_url.

Why is it needed?

Currently, when using a non-standard port for https (any one other than 443), the port gets stripped from the site's URL, making it impossible to properly navigate the site. Only the standard ports of 80 and 443 should be stripped.

How to test

Configure the testing site on standard and non-standard ports, both with https on and off. Verify that setup, subsequent usage of the manager, and front end browsing all work as expected (with non-standard ports being maintained in the URL and 80/443 being stripped out).

Related issue(s)/PR(s)

This is a backport of #16087 (which solved #16015 for 3.x).

Jim Graham added 3 commits June 3, 2022 01:50
Solves problem in 16071 in a different way while fixing issue modxcms#16194.
This reverts commit 45738fc.
@smg6511 smg6511 requested review from opengeek and Mark-H as code owners June 3, 2022 06:10
@cla-bot cla-bot bot added the cla-signed CLA confirmed for contributors to this PR. label Jun 3, 2022
@smg6511 smg6511 added the pr/review-needed Pull request requires review and testing. label Jun 3, 2022
@Ibochkarev Ibochkarev added this to the v2.8.5 milestone Aug 10, 2022
@Ibochkarev Ibochkarev added pr/ready-for-merging Pull request reviewed and tested and ready for merging. and removed pr/review-needed Pull request requires review and testing. labels Aug 10, 2022
@opengeek opengeek merged commit 3720695 into modxcms:2.x Aug 10, 2022
@dimasites
Copy link
Contributor

Hi! Thank for updates! But this still not fully correct working with non-standart ports. In sreenshot below, port :44333 MODX cut ":443" and "33" part breaks the links:

Still not correct working with non-standart ports

I made new issue about this

@smg6511 smg6511 deleted the 2.x-persist-custom-uri-ports branch March 30, 2024 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed CLA confirmed for contributors to this PR. pr/ready-for-merging Pull request reviewed and tested and ready for merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants