We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11149
    • 17 Posts
    Hello,

    I was breaking my mind but didn't find a solution.
    What would be the best way to implement a protocol relative URL for an Asset?
    At the moment I do it as follow:
    <link rel="stylesheet" href="//domain.com/[[~11? &scheme=`-1`]]">

    Is there a better more dynamic way while using the "site_url" variable?

    Appreciate any suggestions.


    PS: I run MODX Revolution 2.2.6. [ed. note: gottkaiser last edited this post 13 years, 10 months ago.]