<< Click to Display Table of Contents >> Navigation: IWCL > IntraWeb Library Loader > Parameters > AppPath |
Type: String
Default: / (the root path)
Description:
Defines the base application path used to resolve relative URLs for resources such as additional .iwml files, scripts, or assets. This is especially useful when your application is hosted in a subdirectory rather than at the root of the domain.
Setting AppPath helps ensure that navigation, routing, and dynamic loading behave correctly relative to the specified base path.
Usage Notes:
If your application is hosted at http://example.com/myapp/, you should set data-AppPath="/myapp/" to ensure all relative paths are resolved correctly.
<script src="/IntraWeb.js" data-Source="/Index.iwml" data-AppPath="/myapp/"></script>
In this example, IWCL will treat /myapp/ as the base path for resolving internal navigation and asset references.