Add Dynamic Links to New Universal Login Page

Problem statement

This article addresses the customers who need a link on the New Universal Login page that the user can click on to exit the login flow and go back to a specified page when calling /authorize.


Please note that as the solution utilizes a query string parameter, it could be repurposed by a malicious actor to add links to the login page - so it is recommended to have a set of URLs that can be chosen from based on the parameter sent, rather than setting a URL directly, as unlike Allowed Callback URLs and the redirect_uri parameter, they will not be validated.

<!DOCTYPE html><html lang="{{locale}}">
    {%- auth0:head -%}
      body {
        background-image: radial-gradient(white, rgb(200, 200, 200));
      .footer {
        background-color: rgb(120, 120, 120);
        position: absolute;
        bottom: 0;
        left: 0;
        padding: 16px 0;
        width: 100%;
        color: white;
        /* Use a high z-index for future-proofing */
        z-index: 10;
      .footer p {
        text-align: center;
      .footer p li {
        display: inline-block;
        margin: 0 4px;
      .footer p li:not(:first-of-type) {
        margin-left: 0;
      .footer p li:not(:first-of-type)::before {
        content: '';
        display: inline-block;
        vertical-align: middle;
        width: 4px;
        height: 4px;
        margin-right: 4px;
        background-color: white;
        border-radius: 50%;
      .footer a {
        color: white;
     <title>{{ prompt.screen.texts.pageTitle }}</title>
  <body class="_widget-auto-layout">
    {%- auth0:widget -%}
     <footer class="footer">
        {% if transaction.params.ext-link == "link1" %}
           <li><a href="">Return to link 1</a></li>
        {% elsif transaction.params.ext-link == "link2" %}
           <li><a href="">Return to link 2</a></li>
        {% else %}
          <li><a href="">Return to Default link</a></li>
        {% endif %}

Passing the ext-link as a query string parameter (the rest of the query string parameters omitted for brevity) will populate the hyperlink in the page template with the first option.


Related References

Please check the below documentation for more details: