[Tex/LaTex] How to change the case of only the URL to lowercase in href

urls

I am making my resume using LaTeX.

I have a section which capitalises its contents.

runsubsection{\href{my_url}{some_text}}

This will result in something like this:

SOME_TEXT

However, the url to which this text redirects results in a 404 error as it doesn't exist. The reason being the capitalization of the my_url in the section renders it useless.

I tried using this:

runsubsection{\href{\MakeLowercase{my_url}}{some_text}}

But this gives a compilation error.

How do I make this work?

EDIT:

Here is the definition of runsubsection:

\newcommand{\runsubsection}[1]{
\color{subheadings}\fontspec[Path = fonts/lato/]{Lato-Bol}\fontsize{12pt}{12pt}\selectfont\bfseries\uppercase {#1} \normalfont}

Best Answer

I know this is a year old now so you likely gave up or found an answer. For the people like me who later go searching for why this is happening, this fixes it.

\href{http://somelink.com/some_text}
{\runsubsection{Your Title}}
Related Question