Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Best practice to detect if application is using Friendly URLs

Jeffrey KempMay 1 2020 — edited May 5 2020

My plugin needs to be able to generate an absolute URL to form a base for loading static images included with the plugin. At the moment, my code parses (window.location.pathname) to detect Friendly URLs by the presence of "/r/" in it.

I'm not sure that I can rule out the possibility that someone, somewhere, has a webserver that has /r/ somewhere in its path even though it is using legacy URLs.

Is this the best way to detect this? Should my plugin instead query apex_applications.friendly_url to determine this?

Comments
Post Details
Added on May 1 2020
2 comments
391 views