Replace location.href by location.pathname to get rid of query

Social url like yunohost.org/?utm_content=XXX return a 404 error.
Need more testing