How to change moderncv social[linkedin] from http to https? Announcing the arrival of Valued...

Why weren't discrete x86 CPUs ever used in game hardware?

Where and when has Thucydides been studied?

NIntegrate on a solution of a matrix ODE

Sally's older brother

How does TikZ render an arc?

Did John Wesley plagiarize Matthew Henry...?

What does 丫 mean? 丫是什么意思?

The bible of geometry: Is there a modern treatment of geometries from the most primitive to the most advanced?

2018 MacBook Pro won't let me install macOS High Sierra 10.13 from USB installer

How does the body cool itself in a stillsuit?

In musical terms, what properties are varied by the human voice to produce different words / syllables?

Statistical analysis applied to methods coming out of Machine Learning

Marquee sign letters

Inverse square law not accurate for non-point masses?

Centre cell vertically in tabularx

By what mechanism was the 2017 General Election called?

First paper to introduce the "principal-agent problem"

Google .dev domain strangely redirects to https

Why shouldn't this prove the Prime Number Theorem?

Order between one to one functions and their inverses

Putting class ranking in CV, but against dept guidelines

Determine whether an integer is a palindrome

Are there any irrational/transcendental numbers for which the distribution of decimal digits is not uniform?

The Nth Gryphon Number



How to change moderncv social[linkedin] from http to https?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)Fixing the 'social' command of 'moderncv' for LinkedIN (intl profile)In moderncv how to change extrainfo xing from http to https?Fixing the 'social' command of 'moderncv' for LinkedIN (intl profile)moderncv: bullet points between phone/email/socialsocial links and symbols in moderncvExtending moderncv social commandmoderncv social commandsmoderncv version change issuesmoderncv linkedin symbol and greek languagemoderncv social symbol not horizontal alignedChange moderncv cvdoubleitem styleIn moderncv how to change extrainfo xing from http to https?












3















Hello I am new to LaTeX and like it!



In moderncv I have a Link to my Linkedin profile. However, this link is http and I'd like to change to https.



Example



    documentclass[11pt,a4paper,sans]{moderncv}
moderncvstyle{casual}
moderncvcolor{blue}
usepackage[scale=0.75]{geometry}

name{John}{Doe}
social[linkedin]{reidhoffman}

begin{document}

makecvtitle

section{Education}
cventry{year--year}{Degree}{Institution}{City}{textit{Grade}} {Description}

end{document}


I tried to customize the link as described in Fixing the 'social' command of 'moderncv' for LinkedIN (intl profile) but it doesn't accept https.



If you need a minimal working example, just use the default template of moderncv at http://www.pirbot.com/mirrors/ctan/macros/latex/contrib/moderncv/examples/template.tex . Thanks in advance!










share|improve this question





























    3















    Hello I am new to LaTeX and like it!



    In moderncv I have a Link to my Linkedin profile. However, this link is http and I'd like to change to https.



    Example



        documentclass[11pt,a4paper,sans]{moderncv}
    moderncvstyle{casual}
    moderncvcolor{blue}
    usepackage[scale=0.75]{geometry}

    name{John}{Doe}
    social[linkedin]{reidhoffman}

    begin{document}

    makecvtitle

    section{Education}
    cventry{year--year}{Degree}{Institution}{City}{textit{Grade}} {Description}

    end{document}


    I tried to customize the link as described in Fixing the 'social' command of 'moderncv' for LinkedIN (intl profile) but it doesn't accept https.



    If you need a minimal working example, just use the default template of moderncv at http://www.pirbot.com/mirrors/ctan/macros/latex/contrib/moderncv/examples/template.tex . Thanks in advance!










    share|improve this question



























      3












      3








      3








      Hello I am new to LaTeX and like it!



      In moderncv I have a Link to my Linkedin profile. However, this link is http and I'd like to change to https.



      Example



          documentclass[11pt,a4paper,sans]{moderncv}
      moderncvstyle{casual}
      moderncvcolor{blue}
      usepackage[scale=0.75]{geometry}

      name{John}{Doe}
      social[linkedin]{reidhoffman}

      begin{document}

      makecvtitle

      section{Education}
      cventry{year--year}{Degree}{Institution}{City}{textit{Grade}} {Description}

      end{document}


      I tried to customize the link as described in Fixing the 'social' command of 'moderncv' for LinkedIN (intl profile) but it doesn't accept https.



      If you need a minimal working example, just use the default template of moderncv at http://www.pirbot.com/mirrors/ctan/macros/latex/contrib/moderncv/examples/template.tex . Thanks in advance!










      share|improve this question
















      Hello I am new to LaTeX and like it!



      In moderncv I have a Link to my Linkedin profile. However, this link is http and I'd like to change to https.



      Example



          documentclass[11pt,a4paper,sans]{moderncv}
      moderncvstyle{casual}
      moderncvcolor{blue}
      usepackage[scale=0.75]{geometry}

      name{John}{Doe}
      social[linkedin]{reidhoffman}

      begin{document}

      makecvtitle

      section{Education}
      cventry{year--year}{Degree}{Institution}{City}{textit{Grade}} {Description}

      end{document}


      I tried to customize the link as described in Fixing the 'social' command of 'moderncv' for LinkedIN (intl profile) but it doesn't accept https.



      If you need a minimal working example, just use the default template of moderncv at http://www.pirbot.com/mirrors/ctan/macros/latex/contrib/moderncv/examples/template.tex . Thanks in advance!







      moderncv hyperlink






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 25 '18 at 20:36









      Kurt

      41.7k950164




      41.7k950164










      asked Mar 2 '18 at 8:35









      nemunemu

      254




      254






















          2 Answers
          2






          active

          oldest

          votes


















          0














          A fix by "renew-ing" the documentclass command to use href{}{} for
          this page:



          documentclass[11pt,a4paper,sans]{moderncv}
          moderncvstyle{casual}
          moderncvcolor{blue}
          usepackage[scale=0.75]{geometry}

          % Added these lines (until `makeatother` that belongs to documentclass `moderncv.cls`)
          makeatletter
          RenewDocumentCommand{social}{O{}O{}m}{%
          ifthenelse{equal{#2}{}}%
          {%NEXT LINE CHANGED FROM ORIGINAL
          ifthenelse{equal{#1}{linkedin}}{collectionadd[linkedin]{socials}{protecthref{https://www.linkedin.com/in/#3}{#3}}}{}%
          ifthenelse{equal{#1}{twitter}} {collectionadd[twitter]{socials} {protecthttplink[#3]{www.twitter.com/#3}}} {}%
          ifthenelse{equal{#1}{github}} {collectionadd[github]{socials} {protecthttplink[#3]{www.github.com/#3}}} {}%
          }
          {collectionadd[#1]{socials}{protecthttplink[#3]{#2}}}}
          makeatother
          name{John}{Doe}
          social[linkedin]{reidhoffman}


          begin{document}

          makecvtitle

          section{Education}
          cventry{year--year}{Degree}{Institution}{City}{textit{Grade}} {Description}

          end{document}





          share|improve this answer
























          • @nemu Welcome... You nay accept the answer if it solves your problem (tex.meta.stackexchange.com/questions/1852/…)

            – koleygr
            Mar 2 '18 at 13:40



















          0














          You need simply to define a new command httpslink like



          % makes a https hyperlink
          % usage: httpslink[optional text]{link}
          newcommand*{httpslink}[2][]{% <=======================================
          ifthenelse{equal{#1}{}}%
          {href{https://#2}{#2}}%
          {href{https://#2}{#1}}}


          Then you can simply change the call of httplink to httpslink to get your wished result.



          Please see the following MWE (important code changings marked with <======):



          documentclass[11pt,a4paper,sans]{moderncv}

          moderncvstyle{casual}
          moderncvcolor{blue}

          usepackage[scale=0.75]{geometry}

          % makes a https hyperlink
          % usage: httpslink[optional text]{link}
          newcommand*{httpslink}[2][]{% <=======================================
          ifthenelse{equal{#1}{}}%
          {href{https://#2}{#2}}%
          {href{https://#2}{#1}}}

          % adds a social link to one's personal information (optional)
          % usage: social[<optional type>][<optional url>]{<account name>}
          % where <optional type> should be either "linkedin", "twitter" or "github"
          RenewDocumentCommand{social}{O{}O{}m}{% <=============================
          ifthenelse{equal{#2}{}}%
          {%
          ifthenelse{equal{#1}{linkedin}}{collectionadd[linkedin]{socials}{protecthttpslink[#3]{www.linkedin.com/in/#3}}}{}% <==========================================
          ifthenelse{equal{#1}{twitter}} {collectionadd[twitter]{socials} {protecthttpslink[#3]{www.twitter.com/#3}}} {}% <=====================
          ifthenelse{equal{#1}{github}} {collectionadd[github]{socials} {protecthttpslink[#3]{www.github.com/#3}}} {}% <=====================
          }
          {collectionadd[#1]{socials}{protecthttpslink[#3]{#2}}}}


          name{John}{Doe}
          social[linkedin]{reidhoffman}


          begin{document}

          makecvtitle

          section{Education}
          cventry{year--year}{Degree}{Institution}{City}{textit{Grade}} {Description}

          end{document}


          which gives you the wished result: https://www.linkedin.com/in/reidhoffman. Please see that I changed the old protocolls httplink to httpslink also for all other possibilitys command social gave you to add social links to your cv ...






          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%2f418071%2fhow-to-change-moderncv-sociallinkedin-from-http-to-https%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            A fix by "renew-ing" the documentclass command to use href{}{} for
            this page:



            documentclass[11pt,a4paper,sans]{moderncv}
            moderncvstyle{casual}
            moderncvcolor{blue}
            usepackage[scale=0.75]{geometry}

            % Added these lines (until `makeatother` that belongs to documentclass `moderncv.cls`)
            makeatletter
            RenewDocumentCommand{social}{O{}O{}m}{%
            ifthenelse{equal{#2}{}}%
            {%NEXT LINE CHANGED FROM ORIGINAL
            ifthenelse{equal{#1}{linkedin}}{collectionadd[linkedin]{socials}{protecthref{https://www.linkedin.com/in/#3}{#3}}}{}%
            ifthenelse{equal{#1}{twitter}} {collectionadd[twitter]{socials} {protecthttplink[#3]{www.twitter.com/#3}}} {}%
            ifthenelse{equal{#1}{github}} {collectionadd[github]{socials} {protecthttplink[#3]{www.github.com/#3}}} {}%
            }
            {collectionadd[#1]{socials}{protecthttplink[#3]{#2}}}}
            makeatother
            name{John}{Doe}
            social[linkedin]{reidhoffman}


            begin{document}

            makecvtitle

            section{Education}
            cventry{year--year}{Degree}{Institution}{City}{textit{Grade}} {Description}

            end{document}





            share|improve this answer
























            • @nemu Welcome... You nay accept the answer if it solves your problem (tex.meta.stackexchange.com/questions/1852/…)

              – koleygr
              Mar 2 '18 at 13:40
















            0














            A fix by "renew-ing" the documentclass command to use href{}{} for
            this page:



            documentclass[11pt,a4paper,sans]{moderncv}
            moderncvstyle{casual}
            moderncvcolor{blue}
            usepackage[scale=0.75]{geometry}

            % Added these lines (until `makeatother` that belongs to documentclass `moderncv.cls`)
            makeatletter
            RenewDocumentCommand{social}{O{}O{}m}{%
            ifthenelse{equal{#2}{}}%
            {%NEXT LINE CHANGED FROM ORIGINAL
            ifthenelse{equal{#1}{linkedin}}{collectionadd[linkedin]{socials}{protecthref{https://www.linkedin.com/in/#3}{#3}}}{}%
            ifthenelse{equal{#1}{twitter}} {collectionadd[twitter]{socials} {protecthttplink[#3]{www.twitter.com/#3}}} {}%
            ifthenelse{equal{#1}{github}} {collectionadd[github]{socials} {protecthttplink[#3]{www.github.com/#3}}} {}%
            }
            {collectionadd[#1]{socials}{protecthttplink[#3]{#2}}}}
            makeatother
            name{John}{Doe}
            social[linkedin]{reidhoffman}


            begin{document}

            makecvtitle

            section{Education}
            cventry{year--year}{Degree}{Institution}{City}{textit{Grade}} {Description}

            end{document}





            share|improve this answer
























            • @nemu Welcome... You nay accept the answer if it solves your problem (tex.meta.stackexchange.com/questions/1852/…)

              – koleygr
              Mar 2 '18 at 13:40














            0












            0








            0







            A fix by "renew-ing" the documentclass command to use href{}{} for
            this page:



            documentclass[11pt,a4paper,sans]{moderncv}
            moderncvstyle{casual}
            moderncvcolor{blue}
            usepackage[scale=0.75]{geometry}

            % Added these lines (until `makeatother` that belongs to documentclass `moderncv.cls`)
            makeatletter
            RenewDocumentCommand{social}{O{}O{}m}{%
            ifthenelse{equal{#2}{}}%
            {%NEXT LINE CHANGED FROM ORIGINAL
            ifthenelse{equal{#1}{linkedin}}{collectionadd[linkedin]{socials}{protecthref{https://www.linkedin.com/in/#3}{#3}}}{}%
            ifthenelse{equal{#1}{twitter}} {collectionadd[twitter]{socials} {protecthttplink[#3]{www.twitter.com/#3}}} {}%
            ifthenelse{equal{#1}{github}} {collectionadd[github]{socials} {protecthttplink[#3]{www.github.com/#3}}} {}%
            }
            {collectionadd[#1]{socials}{protecthttplink[#3]{#2}}}}
            makeatother
            name{John}{Doe}
            social[linkedin]{reidhoffman}


            begin{document}

            makecvtitle

            section{Education}
            cventry{year--year}{Degree}{Institution}{City}{textit{Grade}} {Description}

            end{document}





            share|improve this answer













            A fix by "renew-ing" the documentclass command to use href{}{} for
            this page:



            documentclass[11pt,a4paper,sans]{moderncv}
            moderncvstyle{casual}
            moderncvcolor{blue}
            usepackage[scale=0.75]{geometry}

            % Added these lines (until `makeatother` that belongs to documentclass `moderncv.cls`)
            makeatletter
            RenewDocumentCommand{social}{O{}O{}m}{%
            ifthenelse{equal{#2}{}}%
            {%NEXT LINE CHANGED FROM ORIGINAL
            ifthenelse{equal{#1}{linkedin}}{collectionadd[linkedin]{socials}{protecthref{https://www.linkedin.com/in/#3}{#3}}}{}%
            ifthenelse{equal{#1}{twitter}} {collectionadd[twitter]{socials} {protecthttplink[#3]{www.twitter.com/#3}}} {}%
            ifthenelse{equal{#1}{github}} {collectionadd[github]{socials} {protecthttplink[#3]{www.github.com/#3}}} {}%
            }
            {collectionadd[#1]{socials}{protecthttplink[#3]{#2}}}}
            makeatother
            name{John}{Doe}
            social[linkedin]{reidhoffman}


            begin{document}

            makecvtitle

            section{Education}
            cventry{year--year}{Degree}{Institution}{City}{textit{Grade}} {Description}

            end{document}






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Mar 2 '18 at 10:06









            koleygrkoleygr

            13.4k11039




            13.4k11039













            • @nemu Welcome... You nay accept the answer if it solves your problem (tex.meta.stackexchange.com/questions/1852/…)

              – koleygr
              Mar 2 '18 at 13:40



















            • @nemu Welcome... You nay accept the answer if it solves your problem (tex.meta.stackexchange.com/questions/1852/…)

              – koleygr
              Mar 2 '18 at 13:40

















            @nemu Welcome... You nay accept the answer if it solves your problem (tex.meta.stackexchange.com/questions/1852/…)

            – koleygr
            Mar 2 '18 at 13:40





            @nemu Welcome... You nay accept the answer if it solves your problem (tex.meta.stackexchange.com/questions/1852/…)

            – koleygr
            Mar 2 '18 at 13:40











            0














            You need simply to define a new command httpslink like



            % makes a https hyperlink
            % usage: httpslink[optional text]{link}
            newcommand*{httpslink}[2][]{% <=======================================
            ifthenelse{equal{#1}{}}%
            {href{https://#2}{#2}}%
            {href{https://#2}{#1}}}


            Then you can simply change the call of httplink to httpslink to get your wished result.



            Please see the following MWE (important code changings marked with <======):



            documentclass[11pt,a4paper,sans]{moderncv}

            moderncvstyle{casual}
            moderncvcolor{blue}

            usepackage[scale=0.75]{geometry}

            % makes a https hyperlink
            % usage: httpslink[optional text]{link}
            newcommand*{httpslink}[2][]{% <=======================================
            ifthenelse{equal{#1}{}}%
            {href{https://#2}{#2}}%
            {href{https://#2}{#1}}}

            % adds a social link to one's personal information (optional)
            % usage: social[<optional type>][<optional url>]{<account name>}
            % where <optional type> should be either "linkedin", "twitter" or "github"
            RenewDocumentCommand{social}{O{}O{}m}{% <=============================
            ifthenelse{equal{#2}{}}%
            {%
            ifthenelse{equal{#1}{linkedin}}{collectionadd[linkedin]{socials}{protecthttpslink[#3]{www.linkedin.com/in/#3}}}{}% <==========================================
            ifthenelse{equal{#1}{twitter}} {collectionadd[twitter]{socials} {protecthttpslink[#3]{www.twitter.com/#3}}} {}% <=====================
            ifthenelse{equal{#1}{github}} {collectionadd[github]{socials} {protecthttpslink[#3]{www.github.com/#3}}} {}% <=====================
            }
            {collectionadd[#1]{socials}{protecthttpslink[#3]{#2}}}}


            name{John}{Doe}
            social[linkedin]{reidhoffman}


            begin{document}

            makecvtitle

            section{Education}
            cventry{year--year}{Degree}{Institution}{City}{textit{Grade}} {Description}

            end{document}


            which gives you the wished result: https://www.linkedin.com/in/reidhoffman. Please see that I changed the old protocolls httplink to httpslink also for all other possibilitys command social gave you to add social links to your cv ...






            share|improve this answer






























              0














              You need simply to define a new command httpslink like



              % makes a https hyperlink
              % usage: httpslink[optional text]{link}
              newcommand*{httpslink}[2][]{% <=======================================
              ifthenelse{equal{#1}{}}%
              {href{https://#2}{#2}}%
              {href{https://#2}{#1}}}


              Then you can simply change the call of httplink to httpslink to get your wished result.



              Please see the following MWE (important code changings marked with <======):



              documentclass[11pt,a4paper,sans]{moderncv}

              moderncvstyle{casual}
              moderncvcolor{blue}

              usepackage[scale=0.75]{geometry}

              % makes a https hyperlink
              % usage: httpslink[optional text]{link}
              newcommand*{httpslink}[2][]{% <=======================================
              ifthenelse{equal{#1}{}}%
              {href{https://#2}{#2}}%
              {href{https://#2}{#1}}}

              % adds a social link to one's personal information (optional)
              % usage: social[<optional type>][<optional url>]{<account name>}
              % where <optional type> should be either "linkedin", "twitter" or "github"
              RenewDocumentCommand{social}{O{}O{}m}{% <=============================
              ifthenelse{equal{#2}{}}%
              {%
              ifthenelse{equal{#1}{linkedin}}{collectionadd[linkedin]{socials}{protecthttpslink[#3]{www.linkedin.com/in/#3}}}{}% <==========================================
              ifthenelse{equal{#1}{twitter}} {collectionadd[twitter]{socials} {protecthttpslink[#3]{www.twitter.com/#3}}} {}% <=====================
              ifthenelse{equal{#1}{github}} {collectionadd[github]{socials} {protecthttpslink[#3]{www.github.com/#3}}} {}% <=====================
              }
              {collectionadd[#1]{socials}{protecthttpslink[#3]{#2}}}}


              name{John}{Doe}
              social[linkedin]{reidhoffman}


              begin{document}

              makecvtitle

              section{Education}
              cventry{year--year}{Degree}{Institution}{City}{textit{Grade}} {Description}

              end{document}


              which gives you the wished result: https://www.linkedin.com/in/reidhoffman. Please see that I changed the old protocolls httplink to httpslink also for all other possibilitys command social gave you to add social links to your cv ...






              share|improve this answer




























                0












                0








                0







                You need simply to define a new command httpslink like



                % makes a https hyperlink
                % usage: httpslink[optional text]{link}
                newcommand*{httpslink}[2][]{% <=======================================
                ifthenelse{equal{#1}{}}%
                {href{https://#2}{#2}}%
                {href{https://#2}{#1}}}


                Then you can simply change the call of httplink to httpslink to get your wished result.



                Please see the following MWE (important code changings marked with <======):



                documentclass[11pt,a4paper,sans]{moderncv}

                moderncvstyle{casual}
                moderncvcolor{blue}

                usepackage[scale=0.75]{geometry}

                % makes a https hyperlink
                % usage: httpslink[optional text]{link}
                newcommand*{httpslink}[2][]{% <=======================================
                ifthenelse{equal{#1}{}}%
                {href{https://#2}{#2}}%
                {href{https://#2}{#1}}}

                % adds a social link to one's personal information (optional)
                % usage: social[<optional type>][<optional url>]{<account name>}
                % where <optional type> should be either "linkedin", "twitter" or "github"
                RenewDocumentCommand{social}{O{}O{}m}{% <=============================
                ifthenelse{equal{#2}{}}%
                {%
                ifthenelse{equal{#1}{linkedin}}{collectionadd[linkedin]{socials}{protecthttpslink[#3]{www.linkedin.com/in/#3}}}{}% <==========================================
                ifthenelse{equal{#1}{twitter}} {collectionadd[twitter]{socials} {protecthttpslink[#3]{www.twitter.com/#3}}} {}% <=====================
                ifthenelse{equal{#1}{github}} {collectionadd[github]{socials} {protecthttpslink[#3]{www.github.com/#3}}} {}% <=====================
                }
                {collectionadd[#1]{socials}{protecthttpslink[#3]{#2}}}}


                name{John}{Doe}
                social[linkedin]{reidhoffman}


                begin{document}

                makecvtitle

                section{Education}
                cventry{year--year}{Degree}{Institution}{City}{textit{Grade}} {Description}

                end{document}


                which gives you the wished result: https://www.linkedin.com/in/reidhoffman. Please see that I changed the old protocolls httplink to httpslink also for all other possibilitys command social gave you to add social links to your cv ...






                share|improve this answer















                You need simply to define a new command httpslink like



                % makes a https hyperlink
                % usage: httpslink[optional text]{link}
                newcommand*{httpslink}[2][]{% <=======================================
                ifthenelse{equal{#1}{}}%
                {href{https://#2}{#2}}%
                {href{https://#2}{#1}}}


                Then you can simply change the call of httplink to httpslink to get your wished result.



                Please see the following MWE (important code changings marked with <======):



                documentclass[11pt,a4paper,sans]{moderncv}

                moderncvstyle{casual}
                moderncvcolor{blue}

                usepackage[scale=0.75]{geometry}

                % makes a https hyperlink
                % usage: httpslink[optional text]{link}
                newcommand*{httpslink}[2][]{% <=======================================
                ifthenelse{equal{#1}{}}%
                {href{https://#2}{#2}}%
                {href{https://#2}{#1}}}

                % adds a social link to one's personal information (optional)
                % usage: social[<optional type>][<optional url>]{<account name>}
                % where <optional type> should be either "linkedin", "twitter" or "github"
                RenewDocumentCommand{social}{O{}O{}m}{% <=============================
                ifthenelse{equal{#2}{}}%
                {%
                ifthenelse{equal{#1}{linkedin}}{collectionadd[linkedin]{socials}{protecthttpslink[#3]{www.linkedin.com/in/#3}}}{}% <==========================================
                ifthenelse{equal{#1}{twitter}} {collectionadd[twitter]{socials} {protecthttpslink[#3]{www.twitter.com/#3}}} {}% <=====================
                ifthenelse{equal{#1}{github}} {collectionadd[github]{socials} {protecthttpslink[#3]{www.github.com/#3}}} {}% <=====================
                }
                {collectionadd[#1]{socials}{protecthttpslink[#3]{#2}}}}


                name{John}{Doe}
                social[linkedin]{reidhoffman}


                begin{document}

                makecvtitle

                section{Education}
                cventry{year--year}{Degree}{Institution}{City}{textit{Grade}} {Description}

                end{document}


                which gives you the wished result: https://www.linkedin.com/in/reidhoffman. Please see that I changed the old protocolls httplink to httpslink also for all other possibilitys command social gave you to add social links to your cv ...







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 1 min ago

























                answered Mar 28 '18 at 15:37









                KurtKurt

                41.7k950164




                41.7k950164






























                    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%2f418071%2fhow-to-change-moderncv-sociallinkedin-from-http-to-https%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

                    Installing LyX: “No textclass is found.”LyX installation error- text class not found- 'Reconfigure' or...

                    (1602) Indiana Índice Designación y nombre Características orbitales Véase...

                    Universidad Autónoma de Occidente Índice Historia Campus Facultades Programas Académicos Medios de...