You’re right, “det här är det bästa sättet att lära sig ett språk” means “this is the best way to teach oneself a language.” The phrase “det här är det bästa sättet att lära dig ett språk”, however, means “this is the best way to teach you a language.” I hope it helps.