Login!
Lost password?
 

MODx Bug/Feature Tracker and Feature Requests

Welcome to the MODx CMS Tracker. Please choose the appropriate project from the drop down menu and provide as much information as possible regarding your server environment and browser. Thanks!

FS#459 — makeURL and www

Attached to Project — MODx
Opened by Susan Ottwell (sottwell) - Thursday, 13 July 2006, 12:54AM
Last edited by Ryan Thrash (rthrash) - Sunday, 30 July 2006, 05:48PM
Task Type Feature Request
Category Core Distribution
Status New
Assigned To Susan Ottwell (sottwell)
Operating System All
Severity Low
Priority Normal
Reported Version 0.9.2/0.9.2.1
Due in Version Undecided
Due Date Undecided
Percent Complete 0%

Details

A site is the usual www.whatever.com. A link leads to a form which needs to be secured, so the link is generated using $modx->makeURL($id,'','',1) to get the https scheme. The problem is that the certificate is for whatever.com, not www.whatever.com, so a browser warning pops up.

It would be nice to have a fourth argument to makeURL, maybe $prefix, which would strip the www if given a certain setting, or add it if given another; by default it would do nothing to the HTTP_HOST value that is used.
This task depends upon

This task blocks these from closing