ColdFusion - simple question (?)

They have: 135 posts

Joined: Apr 2000

Well, it should be simple, but I'm not having any luck so far...

Is there a function or way to get the complete URL of the current CF page? I'm imagining a function something like GetCurrentURL() which returns a string like such:
"http://www.domain.com/subdir/file.cfm?param1=x&param2=y"

(I'm needing this in some header and template files which could be called from any number of pages, which is why my page doesn't know its own URL.)

Thanks!

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

well, I don't know ColdFusion

but I'm assuming you have a way to get Environmental variables (because you can in every other language I know).

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.