Closed kofimokome closed 7 months ago
The recent update introduces a new configuration option for specifying the protocol (http
or https
) used in URLs. This option is added to both the environment configuration and a specific PHP configuration file. Additionally, helper functions for generating site URLs have been updated to dynamically set the protocol based on this new configuration, enhancing flexibility and ensuring consistency across the application's URL generation mechanisms.
File Path | Change Summary |
---|---|
src/.example.env src/application/config/humanid.php |
Added a PROTOCOL variable and a protocol parameter respectively, both defaulting to 'http' . |
src/system/helpers/url_helper.php |
Updated site_url and base_url functions to set protocol dynamically from configuration. |
🐇✨
In the land of code and byte,
Where URLs take flight,
A rabbit hopped, with sheer delight,
For protocols now set just right.
"Hop, skip, a dynamic site!"
🌐💻🐰
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@kofimokome Looks good!
Summary by CodeRabbit
http
orhttps
) based on new configuration settings.