Skip to content

Multi-Language and Organisation Logo #12

@jochennoack

Description

@jochennoack

Context

Contao version: 4.13
Bundle version: 1.13.1
PHP version: 8.2.

Description

If the starting point of a website is configured in multiple languages and a URL prefix is used, the language prefix is unfortunately also interpreted in the logo URL. In other words, it would make sense to output the complete URL here.

Validator output with incorrect interpretation

Bildschirm­foto 2023-11-23 um 12 51 32

JSON Code:

{
    "@context": "https:\/\/schema.org",
    "@graph": [
        {
            "@type": "WebPage"
        },
        {
            "@type": "Organization",
            "logo": "files\/logo.png",
            "name": "Organisationsname",
            "url": "https:\/\/www.website.de"
        },

    ]
}

JSON code optimised, with complete URL:

{
    "@context": "https:\/\/schema.org",
    "@graph": [
        {
            "@type": "WebPage"
        },
        {
            "@type": "Organization",
            "logo": "https:\/\/www.website.de\/files\/logo.png",
            "name": "Organisationsname",
            "url": "https:\/\/www.website.de"
        },

    ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions