Is Sam's multi-hostname ninja plugin approach still valid?

Hi.
Is it still valid?

Hi. everybody.
I want to use the onion address in my discourse forum.
I referenced several articles and installed tor, it works well.
Thank you to Bryan, pfaffman, Falco .

Now when I input an onion address in the Tor browser, it redirects to the clearnet address and then there is no need to use tor.
I know using 2 domains is not a preferable way. However I need to use onion addresses on my forum and want to implement this function. sam introduced a method using plugins, and Falco introduced the DISCOURSE_BACKUP_HOSTNAME env variable method.
I tried using sam’s plugin method, it is not working.
I never tested DISCOURSE_BACKUP_HOSTNAME method.
Please advise in this problem.
Thank you.