3.8.1 Understanding Friendly URL Syntax
Friendly URL Syntax creates a URL structure that identifies the address of Oracle APEX, the application, the page, and uses standard web parameter syntax.
Note:
The Friendly URL Syntax described in this section is different from a vanity URL or custom domain name. Configuring a vanity URL (or custom domain name) for your APEX instance is typically done at the web server or load balancer-level and is not discussed in this publication.
Tip:
Applications created using Application Express release 20.1 or later use Friendly URL Syntax. You can revert to f?p Syntax by disabling the Friendly URLs attribute.
- About Friendly URL Syntax
Friendly URL Syntax uses a standard URL hierarchy and passes parameters in a similar fashion to other web applications. - Enabling or Disabling Friendly URL Syntax
Determine if an application uses Friendly URL Syntax or f?p Syntax by enabling or disabling the Friendly URLs attribute. - Customizing a Friendly URL
Customize a Friendly URL by editing the Path Prefix, Application Alias, or Page Alias.
Parent topic: Understanding URL Syntax
3.8.1.1 About Friendly URL Syntax
Friendly URL Syntax uses a standard URL hierarchy and passes parameters in a similar fashion to other web applications.
Friendly URL Hierarchy and Syntax
Friendly URL Syntax creates a URL with the following directory hierarchy and syntax:
https://hostname:port/ords/r/path_prefix/app_alias/page_alias?parameters
Friendly URL Example
https://hostname:port/ords/r/mycompany/hr-app/update-employees?session=13766599855150
Where:
https:
stands for HyperText Transfer Protocol and operates at the application layer.hostname
is the domain name of the server. It can also include a port number or an IP address.-
port
is the port number assigned when configuring Oracle REST Data Services. ords
is the service name defined when configuring Oracle REST Data Services.r
is the router shortcut. This value is a constant and should never be changed.mycompany
is thepath_prefix
which is URI path prefix used to access RESTful Services. When you create a workspace, this value defaults to workspace name. You can customize the URI path prefix by editing the Path Prefix attribute in Administration, Manage Service, Workspace Preferences, SQL Workshop.hr-app
is theapp_alias
. In a new application, the Application Alias defaults to the application Name. You can edit the Application Alias in the application Definition. The Application Alias must be unique within the workspace.update-employees
is thepage_alias
. In a new application, the Page Alias defaults to the page Name. You can edit the Page Alias in Page Designer. Page aliases must be unique within the application. When creating a new page, if a Page Name is already used as a Page Alias, then a numeric value is appended to the new Page Alias to make it unique.?session=13766599855150
identifies the session ID. When you run an application, the Oracle APEX engine generates a session number that serves as a key to the user's session state.
About URL Parameters
The part of the URL after /?
can list
parameters
.
http://hostname:port/ords/r/path_prefix/app_alias/page_alias?parameters (Such as —
p7_customer_id=377&clear=7&session=1247058356345&cs=3MdkfQa9NLmkyHAbwGPg3U-nmA7XIw5sWjU2rMzSvOy_wP1_z7BBI-Gbh2JgvffARgcYJy8id4VtL3d0l1tYm0w)
Supported parameters include:
session
request
clear
debug
application/page items
printerFriendly
trace
timezone
lang
territory
cs
dialogCs
x01
3.8.1.2 Enabling or Disabling Friendly URL Syntax
Determine if an application uses Friendly URL Syntax or f?p Syntax by enabling or disabling the Friendly URLs attribute.
Applications created using Oracle APEX release 20.1 or later use Friendly URL Syntax. You can revert to f?p Syntax by disabling the Friendly URLs attribute.
To enable Friendly URL Syntax:
Parent topic: Understanding Friendly URL Syntax
3.8.1.3 Customizing a Friendly URL
Customize a Friendly URL by editing the Path Prefix, Application Alias, or Page Alias.
Friendly URL Syntax creates a URL with the following directory hierarchy and syntax:
https://hostname:port/ords/r/path_prefix/app_alias/page_alias?parameters
You can customize the follow parts of Friendly URL:
- Path Prefix -
path_prefix
is URI path prefix to be used to access RESTful Services. When you create a workspace, this value defaults to workspace name. You can customize the URI path prefix by editing Path Prefix attribute in Workspace Administration. - Application Alias -
app_alias
is an alternate alphanumeric application identifier called the Application Alias. In a new application, the Application Alias defaults to the application Name. You can edit the Application Alias in the application Definition. - Page Alias -
page_alias
is an alphanumeric alias for this page called the Page Alias. In a new application, the Page Alias defaults to the page Name. You can edit the Page Alias in Page Designer.
Friendly URL Customization Example
Suppose you have an application with the following URL:
http://hostname:port/ords/r/example/355/2?session=13766599855150
Suppose you want to make the following changes:
path_prefix
- Changeexample
tomycompany
.app_alias
- Change355
tomyapp
.page_alias
- Change2
tomyinfo
.
The revised URL will display as:
http://hostname:port/ords/r/mycompany/myapp/myinfo?session=13766599855150
To customize a Friendly URL by editing the Path Prefix, Application Alias, or Page Alias:
See Also:
Enabling RESTful Services and Defining a Path Prefix for a Workspace in Oracle APEX Administration Guide
Parent topic: Understanding Friendly URL Syntax