Class: urlPathAdapter
Oracle® JavaScript Extension Toolkit (JET)
8.0.0
F18189-01
.Router. urlPathAdapter
- Version:
- 8.0.0
- Since:
- 1.1.0
- Module:
- ojrouter
Module usage
See JET Module Loading for an overview of module usage within JET.
Typescript Import Format
//To import this class, use the format below.
import {urlPathAdapter} from "ojs/ojrouter";
JET In Typescript
A detailed description of working with JET elements and classes in your typescript project can be found at: JET Typescript Usage.
Description
Url adapter used by the oj.Router to manage URL in the form of
The UrlPathAdapter is the default adapter used by the router as it makes more human-readable URLs, is user-friendly, and less likely to exceed the maximum charaacter limit in the browser URL.
Since this adapter generates path URLs, it's advisable that your application be able to restore the page should the user bookmark or reload the page. For instance, given the URL
There are two available URL adapters, this one and the urlParamAdapter.
To change the URL adapter, use the urlAdapter property.
/book/chapter2.The UrlPathAdapter is the default adapter used by the router as it makes more human-readable URLs, is user-friendly, and less likely to exceed the maximum charaacter limit in the browser URL.
Since this adapter generates path URLs, it's advisable that your application be able to restore the page should the user bookmark or reload the page. For instance, given the URL
/book/chapter2, your
application server ought to serve up content for "chapter2" if the user should
bookmark or reload the page. If that's not possible, then consider using the
urlParamAdapter.
There are two available URL adapters, this one and the urlParamAdapter.
To change the URL adapter, use the urlAdapter property.