Create a maintenance page.

Hello.

I created a maintenance interface. When I do releasing, all the link are pointing to this maintenance interface. like interceptor, blocking all the link.

How to do ?  Thanks.

  Discussion posts and replies are publicly visible

  • 0
    Certified Lead Developer

    You can't really "intercept" links but you could wrap all your Site Pages like this:

    a!localVariables(
      local!refreshMaintance: a!refreshVariable(
        value: cons!T_MAINTENANCE_MODE,
        refreshAlways: true,
        refreshInterval: 0.5
      ),
      if(
        local!refreshMaintance,
        rule!T_MaintenancePage(),
        rule!T_Employees()
      )
    )
    

    You could also use the built-in global maintenance functionality availlable in the Admin Console: