How to influence the default URL scheme from url or hyperref?












0















I am using komacv in an attempt to typeset a CV which I originally wrote with moderncv. As far as I can tell hyperref gets loaded by komacv, which in turn causes url to be loaded. But I don't know which of the two may be responsible for the behavior.



Consider the following MWE:



documentclass[paper=A4]{komacv}
renewcommand*{firstname}{John}
renewcommand*{familyname}{Doe}
renewcommand*{homepage}{tex.stackexchange.com}
hypersetup{hidelinks}
setkomafont{addressfont}{scriptsizesffamily}
begin{document}
maketitle
end{document}


When generating a PDF from this, the tex.stackexchange.com will point to http://tex.stackexchange.com. So evidently there is a mechanism to cause a host name without URL scheme to be converted to a link using http:// as its default URL scheme (i.e. protocol). How can I change this to point to https://tex.stackexchange.com instead?



I realize that in many cases the http:// address will redirect to https:// but that's merely a convention and so it would be desirable to influence the automatism embedded in either hyperref or url.










share|improve this question

























  • What if you type https://tex.stackexchange.com in your document instead of tex.stackexchange.com? Wouldn't this solve the problem directly?

    – Superuser27
    Mar 26 at 19:02






  • 1





    @Superuser27 not really, because aesthetically that be inferior (it's longer and more clutter in a CV). Technically it would be one pragmatic solution, though, agreed.

    – 0xC0000022L
    Mar 26 at 19:24
















0















I am using komacv in an attempt to typeset a CV which I originally wrote with moderncv. As far as I can tell hyperref gets loaded by komacv, which in turn causes url to be loaded. But I don't know which of the two may be responsible for the behavior.



Consider the following MWE:



documentclass[paper=A4]{komacv}
renewcommand*{firstname}{John}
renewcommand*{familyname}{Doe}
renewcommand*{homepage}{tex.stackexchange.com}
hypersetup{hidelinks}
setkomafont{addressfont}{scriptsizesffamily}
begin{document}
maketitle
end{document}


When generating a PDF from this, the tex.stackexchange.com will point to http://tex.stackexchange.com. So evidently there is a mechanism to cause a host name without URL scheme to be converted to a link using http:// as its default URL scheme (i.e. protocol). How can I change this to point to https://tex.stackexchange.com instead?



I realize that in many cases the http:// address will redirect to https:// but that's merely a convention and so it would be desirable to influence the automatism embedded in either hyperref or url.










share|improve this question

























  • What if you type https://tex.stackexchange.com in your document instead of tex.stackexchange.com? Wouldn't this solve the problem directly?

    – Superuser27
    Mar 26 at 19:02






  • 1





    @Superuser27 not really, because aesthetically that be inferior (it's longer and more clutter in a CV). Technically it would be one pragmatic solution, though, agreed.

    – 0xC0000022L
    Mar 26 at 19:24














0












0








0








I am using komacv in an attempt to typeset a CV which I originally wrote with moderncv. As far as I can tell hyperref gets loaded by komacv, which in turn causes url to be loaded. But I don't know which of the two may be responsible for the behavior.



Consider the following MWE:



documentclass[paper=A4]{komacv}
renewcommand*{firstname}{John}
renewcommand*{familyname}{Doe}
renewcommand*{homepage}{tex.stackexchange.com}
hypersetup{hidelinks}
setkomafont{addressfont}{scriptsizesffamily}
begin{document}
maketitle
end{document}


When generating a PDF from this, the tex.stackexchange.com will point to http://tex.stackexchange.com. So evidently there is a mechanism to cause a host name without URL scheme to be converted to a link using http:// as its default URL scheme (i.e. protocol). How can I change this to point to https://tex.stackexchange.com instead?



I realize that in many cases the http:// address will redirect to https:// but that's merely a convention and so it would be desirable to influence the automatism embedded in either hyperref or url.










share|improve this question
















I am using komacv in an attempt to typeset a CV which I originally wrote with moderncv. As far as I can tell hyperref gets loaded by komacv, which in turn causes url to be loaded. But I don't know which of the two may be responsible for the behavior.



Consider the following MWE:



documentclass[paper=A4]{komacv}
renewcommand*{firstname}{John}
renewcommand*{familyname}{Doe}
renewcommand*{homepage}{tex.stackexchange.com}
hypersetup{hidelinks}
setkomafont{addressfont}{scriptsizesffamily}
begin{document}
maketitle
end{document}


When generating a PDF from this, the tex.stackexchange.com will point to http://tex.stackexchange.com. So evidently there is a mechanism to cause a host name without URL scheme to be converted to a link using http:// as its default URL scheme (i.e. protocol). How can I change this to point to https://tex.stackexchange.com instead?



I realize that in many cases the http:// address will redirect to https:// but that's merely a convention and so it would be desirable to influence the automatism embedded in either hyperref or url.







urls komacv






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 27 at 20:50







0xC0000022L

















asked Mar 26 at 17:32









0xC0000022L0xC0000022L

310214




310214













  • What if you type https://tex.stackexchange.com in your document instead of tex.stackexchange.com? Wouldn't this solve the problem directly?

    – Superuser27
    Mar 26 at 19:02






  • 1





    @Superuser27 not really, because aesthetically that be inferior (it's longer and more clutter in a CV). Technically it would be one pragmatic solution, though, agreed.

    – 0xC0000022L
    Mar 26 at 19:24



















  • What if you type https://tex.stackexchange.com in your document instead of tex.stackexchange.com? Wouldn't this solve the problem directly?

    – Superuser27
    Mar 26 at 19:02






  • 1





    @Superuser27 not really, because aesthetically that be inferior (it's longer and more clutter in a CV). Technically it would be one pragmatic solution, though, agreed.

    – 0xC0000022L
    Mar 26 at 19:24

















What if you type https://tex.stackexchange.com in your document instead of tex.stackexchange.com? Wouldn't this solve the problem directly?

– Superuser27
Mar 26 at 19:02





What if you type https://tex.stackexchange.com in your document instead of tex.stackexchange.com? Wouldn't this solve the problem directly?

– Superuser27
Mar 26 at 19:02




1




1





@Superuser27 not really, because aesthetically that be inferior (it's longer and more clutter in a CV). Technically it would be one pragmatic solution, though, agreed.

– 0xC0000022L
Mar 26 at 19:24





@Superuser27 not really, because aesthetically that be inferior (it's longer and more clutter in a CV). Technically it would be one pragmatic solution, though, agreed.

– 0xC0000022L
Mar 26 at 19:24










1 Answer
1






active

oldest

votes


















1














enter image description here



documentclass[paper=A4]{komacv}
renewcommand*{firstname}{John}
renewcommand*{familyname}{Doe}
renewcommand*{homepage}{tex.stackexchange.com}
hypersetup{hidelinks}

%re-renew the relevant cv definition
renewcommand*{httplink}[2]{%
ifstrempty{#1}{%
href{https://#2}{usefontofkomafont{httplinkfont}#2}}{%
href{https://#2}{usefontofkomafont{httplinkfont}#1}}%
}

setkomafont{addressfont}{scriptsizesffamily}
begin{document}

maketitle

end{document}





share|improve this answer


























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f481564%2fhow-to-influence-the-default-url-scheme-from-url-or-hyperref%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    enter image description here



    documentclass[paper=A4]{komacv}
    renewcommand*{firstname}{John}
    renewcommand*{familyname}{Doe}
    renewcommand*{homepage}{tex.stackexchange.com}
    hypersetup{hidelinks}

    %re-renew the relevant cv definition
    renewcommand*{httplink}[2]{%
    ifstrempty{#1}{%
    href{https://#2}{usefontofkomafont{httplinkfont}#2}}{%
    href{https://#2}{usefontofkomafont{httplinkfont}#1}}%
    }

    setkomafont{addressfont}{scriptsizesffamily}
    begin{document}

    maketitle

    end{document}





    share|improve this answer






























      1














      enter image description here



      documentclass[paper=A4]{komacv}
      renewcommand*{firstname}{John}
      renewcommand*{familyname}{Doe}
      renewcommand*{homepage}{tex.stackexchange.com}
      hypersetup{hidelinks}

      %re-renew the relevant cv definition
      renewcommand*{httplink}[2]{%
      ifstrempty{#1}{%
      href{https://#2}{usefontofkomafont{httplinkfont}#2}}{%
      href{https://#2}{usefontofkomafont{httplinkfont}#1}}%
      }

      setkomafont{addressfont}{scriptsizesffamily}
      begin{document}

      maketitle

      end{document}





      share|improve this answer




























        1












        1








        1







        enter image description here



        documentclass[paper=A4]{komacv}
        renewcommand*{firstname}{John}
        renewcommand*{familyname}{Doe}
        renewcommand*{homepage}{tex.stackexchange.com}
        hypersetup{hidelinks}

        %re-renew the relevant cv definition
        renewcommand*{httplink}[2]{%
        ifstrempty{#1}{%
        href{https://#2}{usefontofkomafont{httplinkfont}#2}}{%
        href{https://#2}{usefontofkomafont{httplinkfont}#1}}%
        }

        setkomafont{addressfont}{scriptsizesffamily}
        begin{document}

        maketitle

        end{document}





        share|improve this answer















        enter image description here



        documentclass[paper=A4]{komacv}
        renewcommand*{firstname}{John}
        renewcommand*{familyname}{Doe}
        renewcommand*{homepage}{tex.stackexchange.com}
        hypersetup{hidelinks}

        %re-renew the relevant cv definition
        renewcommand*{httplink}[2]{%
        ifstrempty{#1}{%
        href{https://#2}{usefontofkomafont{httplinkfont}#2}}{%
        href{https://#2}{usefontofkomafont{httplinkfont}#1}}%
        }

        setkomafont{addressfont}{scriptsizesffamily}
        begin{document}

        maketitle

        end{document}






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 27 at 22:03

























        answered Mar 27 at 2:45









        KJOKJO

        3,6801222




        3,6801222






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f481564%2fhow-to-influence-the-default-url-scheme-from-url-or-hyperref%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

            ComboBox Display Member on multiple fields

            Is it possible to collect Nectar points via Trainline?