<tyro-ui-gone>

Gone

410 error page - shown for URLs that have been permanently removed. Unlike a 404, the 410 code tells search engines to drop the page from their index for good.

Preview

[homeLink]="/"
Error 410

410

Page removed

This page has been permanently removed and will not come back.
Go back to the home page to find our latest content.

Back to home

Inputs

Property
Type
Default
Description
[homeLink] string '/'Route for the back-to-home button
[homeLabel] string "Retour à l'accueil"Button text (fr)
[homeLabelEn] string 'Back to home'Button text (en)

Usage - app.routes.ts

import { tyroUiErrorRoutes } from 'tyrolium-ui';

export const routes: Routes = [
  // ...vos routes / your routes
  ...tyroUiErrorRoutes(), // 403, 404, 410 + wildcard
];

Usage - removed URLs (server)

The server answers with the real 410 code and the pre-rendered /410 page; Angular then displays this component on the requested URL.

// scripts/tyrobuild.mjs - liste des sites / site list
{ key: 'tyrolium', …, gone: ['ServerMC', 'Panel'] },

// → .htaccess (Apache)
RewriteRule ^(ServerMC|Panel)(/.*)?$ - [R=410,L]
ErrorDocument 410 /410/index.html

// → .tyro-nginx.conf (Nginx)
location ~ ^/(ServerMC|Panel)(/|$) { return 410; }
error_page 410 /410/index.html;