I have combined the following json scripts into a single one as I found this should be the best practice: https://developers.google.com/search/docs/data-types/sitename
So the script is ok and located only on my homepage.
On google documentation page about sitelinks-searchbox it specifies to only use it on the homepage. But on the part about the sitename it does not.
So I am thinking that maybe I did wrong and wrongfully combined the two scrips instead of using the sitename one on all my pages I only used it on the homepage.
Can anyone confirm this please?