Forum OpenACS Q&A: URL -"Where am I" function

Collapse
Posted by Bob OConnor on

I want to get the full url of the current ADP page WITHOUT hard coding it into the page so I can pass it as a variable via a FORM to another page.

This means that I could move the ADP page and still the location would be correctly passed for use in a link. ALso, I can make a generic function that would work on any page. I also want to use this with bboard so it would need to include the url vars.

Does such a beast exist?

STORY
Here is a Classic one from the old "Bert & I" record.
An out-of-stata gets lost while floating around in a lighter than air balloon. As he lets the air out, he floats down close to a Maine farmer and calls out:

"Where am I, Farmer?"

"You're in a Balloon, you darn fool!"

I'm asking a similar question of AOLserver!

ENJOY
-Bob

Collapse
Posted by Bryan Che on
ns_conn url
Collapse
Posted by Bob OConnor on

Thanks Brian...
ns_conn url
works but does not include url vars

UNLESS someone has a better method,
I'll just cat the url vars back.

-Bob