I am using below code to get current page URL in coldfusion :-
host = structKeyExists(cgi,'http_host') ? cgi.http_host : '';
req_url = 'https://' & host & cgi.script_name;
But in req_url parameter I am getting host_name/index.cfm instead of current page URL. I am getting actual URL in referrer. Please let me know how to get current page URL in coldfusion.