GithubHelp home page GithubHelp logo

Comments (7)

solverat avatar solverat commented on May 28, 2024

@alexej-d mhm, that's interesting. Do you have any screenshot of the rendered link?

In my tests, the webLink attribute only get's applied, if the webLink explicitly has been set.

Pimcore reference:

https://github.com/pimcore/pimcore/blob/e1408784d9d00901b19dfdded1fd6025f47bf6a4/lib/Twig/Extension/Templating/Traits/WebLinksTrait.php#L85

from pimcore-i18n.

alexej-d avatar alexej-d commented on May 28, 2024

Check the Chrome network inspection tab – for example these are the links that are pushed on the /de route on our instance: image

from pimcore-i18n.

solverat avatar solverat commented on May 28, 2024

@alexej-d, thanks! Still weird, in my case, no weblink will be pushed in the setup.

I tested the x-default link for example:

$this->headLink->appendAlternate($this->generateHrefLink($xDefaultUrl), false, false, ['hreflang' => 'x-default']);

Still no preloaded link. If I'm adding the weblink attribute:

image

than I'm also see the preloaded link:

image

from pimcore-i18n.

solverat avatar solverat commented on May 28, 2024

However, I don't think it is wrong to add this attribute, if it helps! A PR would be great!

from pimcore-i18n.

alexej-d avatar alexej-d commented on May 28, 2024

@solverat did you set this config?

framework:
    web_link:
        enabled: true

I presume this is the reason for this behaviour.

from pimcore-i18n.

solverat avatar solverat commented on May 28, 2024

@alexej-d: Yes, that's also enabled on my site.

from pimcore-i18n.

solverat avatar solverat commented on May 28, 2024

Merged, thank you @alexej-d

from pimcore-i18n.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.