I’ve encountered a reproducible issue in Oracle APEX 24.2.6 when using multiple Theme Styles together with session rejoining and End Users can choose Theme Style enabled.
Steps to Reproduce:
- Create a new application with at least two Theme Styles.
- Set Rejoin Session = Enabled for All Sessions and enable End Users can choose Theme Style.
- Run the application and log in.
- The URL should now look like:
your-host.com/ords/r/test/test-app/home?session=xxx
- In the footer, click Customize and switch the Theme Style.
- ✅ The style changes successfully, and the page reloads with the new look.
- Copy the URL from the address bar. If it includes the session parameter, remove it and keep only the base URL (without a
?
).
- Example:
your-host.com/ords/r/test/test-app/home
- Reload this cleaned URL.
- ✅ The page loads as expected, showing that Rejoin Session works correctly.
- Again, in the footer, click Customize and switch the Theme Style.
Analysis:
When the Theme Style is switched, APEX performs a redirect and expects the existing URL to already contain a ?
.
If that’s not the case, the parameter success_msg
gets appended with an &
, producing an invalid URL such as:
your-host.com/ords/r/test/test-app/home&success_msg=XXXXXXXX
Instead of the valid form:
your-host.com/ords/r/test/test-app/home?success_msg=XXXXXXXX