xo::Context instproc original_url_and_query (public)

 <instance of xo::Context[i]> original_url_and_query args \
    [ args... ]

Defined in /var/www/openacs/packages/xotcl-core/tcl/context-procs.tcl

Get or set the original URL and query string.

Parameters:
args (required)
One argument stores an explicit value. With no argument, return the stored value or construct it from the context URL and query.

Testcases:
package_normalize_path, xowiki_test_cases, link_tests, slot_interactions, path_resolve
Source code:
if {[llength $args] == 1} {
  set :original_url_and_query [lindex $args 0]
} elseif {[info exists :original_url_and_query]} {
  return ${:original_url_and_query}
} else {
  return ${:url}?${:actual_query}
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: