@autobusal/providers 1.6.0 → 1.6.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 CHANGED
@@ -4,6 +4,16 @@ 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.6.1] - 2026-07-30
8
+
9
+ ### Fixed
10
+
11
+ - **`Organization`/`WebSite` JSON-LD `url` was wrong** (introduced in 1.6.0,
12
+ same day) - used `data.url` (`SettingsData.url`, from `Label::url()`),
13
+ which is deliberately the obtapi asset-storage path for this label's
14
+ uploaded files (`https://obtapi.../storage/labels/{label}`), not the
15
+ site's own public domain. Now uses `window.location.origin`.
16
+
7
17
  ## [1.6.0] - 2026-07-30
8
18
 
9
19
  ### Added
package/Setup/Preload.tsx CHANGED
@@ -31,11 +31,21 @@ const Preload = ({ data, children }: Props): JSX.Element => {
31
31
  // sitelinks searchbox), and this app's search is inherently two-field
32
32
  // (from/to) - forcing it into that shape would just be invalid structured
33
33
  // data, not a working sitelinks box.
34
+ //
35
+ // NOTE: `data.url` (SettingsData.url, from Label::url()) is deliberately
36
+ // the obtapi ASSET STORAGE path for this label's uploaded files
37
+ // (https://obtapi.../storage/labels/{label}) - that's correct for the
38
+ // favicon/font hrefs below, which really do live there, but wrong for
39
+ // anything meaning "this site's own homepage" (Organization/WebSite.url).
40
+ // window.location.origin is the actual public domain, whatever it is for
41
+ // this brand/environment.
42
+ const siteUrl = window.location.origin;
43
+
34
44
  const organizationLd = {
35
45
  '@context': 'https://schema.org',
36
46
  '@type': 'Organization',
37
47
  name: data.preferences.company,
38
- url: data.url,
48
+ url: siteUrl,
39
49
  logo: `${ data.url }/favicons/apple-touch-icon.png`,
40
50
  sameAs: Object.values(data.preferences.social).filter(Boolean)
41
51
  };
@@ -44,7 +54,7 @@ const Preload = ({ data, children }: Props): JSX.Element => {
44
54
  '@context': 'https://schema.org',
45
55
  '@type': 'WebSite',
46
56
  name: data.preferences.company,
47
- url: data.url
57
+ url: siteUrl
48
58
  };
49
59
 
50
60
  return (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"