Skip to content
Discussion options

You must be logged in to vote

I did the simplest thing that could possibly work: I created a theme that detects the error message that I care about and triggers a client-side redirect:

<#if message.summary?? && message.summary?contains("Invalid username")>
    <meta http-equiv="refresh" content="0;URL='https://myserver/request'" />
</#if>

Is there an easy way to parameterize the URL so that I can specify it as a server-side property instead of changing the URL in each environment? That would allow me to reuse the theme.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by snupsband
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant