coldfusion - Why does HttpHeader X-Original-URL not exist on some pages? -


my site using url rewrite make seo friendly urls. makes self-posting form same page little tricky.

however in coldfusion form's action attribute:

<form name="formsortby" method="post" enctype="multipart/form-data" action="#structfind(gethttprequestdata().headers, 'x-original-url')#">  </form> 

the important part here #structfind(gethttprequestdata().headers, 'x-original-url')# gets me url of page.

however x-original-url key doesn't exist on pages error coldfusion saying:

cannot find x-original-url key in structure. specified key, x-original-url, not exist in structure.  

this happening when click go homepage of section in. x-original-url exists if go http://www.sitename.com/products/gaming won't exist if go http://www.sitename.com/products

is there anyway around or make work need to?

sounds there issue between rewrite rules , cf.

but, there easy fix - can form post not specifying action attribute.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -