Skip to Content (Press Enter)
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Home
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Platforms
OutSystems.com
Personal Edition
Community
Resources
Support
Search in OutSystems
Log in
Get Started
Community
›
Forge
›
Assets list
›
ReactiveRedirect
Login to follow
ReactiveRedirect (ODC)
Stable version
0.1.0
(Compatible with
ODC
)
Uploaded on
11 September 2023
by
OutSystems Labs
Overview
Documentation
Support
ReactiveRedirect (ODC)
Documentation
0.1.0
Create an Application Setting called CustomDomain
Create a Server Action called CheckForCustomDomain, with an input parameter called CurrentURL, and an output parameter called CustomURL.
Add the dependency, Request_ReplaceDomain from the HTTP source, if needed
Choose a common block used by all pages in the application
In the OnReady or OrInitialize function, get the GetBookMarkableURL() and pass it to the CheckForCustomDomain function.
Compare the result of GetBookMarkableURL() to CheckForCustomDomain.CustomURL. If they are not the same, redirect to CustomURL.
Loading
Loading...