Skip to content

Personalised, known3xx.astro page #1170

@ematipico

Description

@ematipico

Summary

Allow to have a known file called 3xx.astro that allows to return a personalised version of a redirect page

Background & Motivation

Since we introduced i18n routing, there have been cases where this new features uses the redirect engine used by Astro.

This showed some shortcomings in features:

  • it's not possible to personalise the markup of the page
  • it's not possible to change the delay of the redirect, which makes a difference in SSG, where a short delay is marked as a temporary redirect, while a long delay is a permanent redirect
  • i18n routing users can't translate the page

Goals

  • similar to 404.astro, to have a 3xx.astro file that will serve any 3 hundred status code
  • users can use any markup inside the page
  • fallback to the built-in redirect layout if nothing is provided

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Stage 2: Accepted Proposals, No RFC

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions