@autobusal/providers 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/Errors/Message.tsx +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,19 @@ All notable changes to `@autobusal/providers` are documented here. This project
|
|
|
4
4
|
adheres to [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
|
|
5
5
|
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [1.5.1] - 2026-07-30
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **`Errors/Message.tsx` (404 / system error page) never rendered a
|
|
12
|
+
`<title>` of its own** - relied entirely on `Preload`'s app-shell fallback
|
|
13
|
+
(the company name), and shipped `noIndex` neither. Now renders its own
|
|
14
|
+
`<Meta>` with the localized not-found/system-error message as the title
|
|
15
|
+
and `noIndex={true}` - error pages have no unique content worth indexing.
|
|
16
|
+
Pairs with `@autobusal/common` 1.5.1's title-ownership fix in the same
|
|
17
|
+
release, which also cleans up the resulting `<title>` duplication with
|
|
18
|
+
`Preload`'s fallback.
|
|
19
|
+
|
|
7
20
|
## [1.5.0] - 2026-07-30
|
|
8
21
|
|
|
9
22
|
### Fixed
|
package/Errors/Message.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useNavigate } from 'react-router-dom';
|
|
2
|
-
import { Button } from '@autobusal/common';
|
|
2
|
+
import { Button, Meta } from '@autobusal/common';
|
|
3
3
|
import { useSystemTheme } from '@autobusal/hooks';
|
|
4
4
|
import { getLanguage } from '../Setup/languages';
|
|
5
5
|
import errors from '@lang/errors';
|
|
@@ -25,7 +25,7 @@ const Message = ({ type }: Props): JSX.Element => {
|
|
|
25
25
|
const translations = errors[language as keyof typeof errors] ?? errors.en;
|
|
26
26
|
|
|
27
27
|
return (
|
|
28
|
-
|
|
28
|
+
<Meta title={ type === 'not_found' ? translations.not_found : translations.system } noIndex={ true }>
|
|
29
29
|
<Background />
|
|
30
30
|
|
|
31
31
|
<Container className="box">
|
|
@@ -54,7 +54,7 @@ const Message = ({ type }: Props): JSX.Element => {
|
|
|
54
54
|
onClick={ () => navigate('/') }
|
|
55
55
|
/>
|
|
56
56
|
</Container>
|
|
57
|
-
|
|
57
|
+
</Meta>
|
|
58
58
|
);
|
|
59
59
|
};
|
|
60
60
|
|