Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: Release 1.4.3
-
Fix Version/s: None
-
Component/s: Tag Library
-
Labels:None
Description
It would be great if stripes:form, stripes:link and stripes:url tags supported additional attributes to make the rendered URL absolute. This is very handy in situations when the user is on a page that got loaded via HTTP and you need to point them to an action over HTTPS.
This is very common for title pages containing user login forms that should be submitted over HTTPS. Redirecting the user to HTTPS as soon as they hit the title page is not desirable. Most of the functionality on the title page is typically available to non-authenticated users and there is no need to further stress the HTTP server with unnecessary HTTPS traffic.
Stripes tags should be intelligent enough to calculate sane defaults (e.g. if protocol="https" is specified and no port is specified, then the port should be set to 443) and normalize the generated URLs (when a standard port is used for the chosen protocol, then the port number is dropped from the URL).
According to the reactions on the mailing list (search for "Force HTTPS for submit"), there are users who would appreciate this functionality.
I have already implemented an extension of the stripes:form tag + normalization routines etc. to support the 4 above-mentioned attributes so I can possibly extract the relevant code and post it.
Jan
Sounds reasonable for me. Could you create a patch against the trunk and attach it to this issue?