Cypress offers a simple way to test for server-side redirects using request:
cy.request({ url: `/dashboard/`, followRedirect: false, // turn off following