I have a page in Craft (2.x) that displays several links and I was able to find which twig file had those links by searching the code base of twigs. Those links point to some Angular code with links like this:
By trial and error, I discovered that the Angular code is invoked as part of a twig file in craft/templates/_views/ The original conundrum was there were two "give" files: give.twig and give-new.twig and I didn't know which one was the actual twig invoked. By trail and error again, I determined it was using the give-new.twig by changing the template. But for the life of me, I cannot figure out how THAT twig is being invoked. I scanned for "give-new" in the code, both craft and Angular and I searched in Settings, Routes and Web Content for any reference to it but I cannot figure out how a URL like /support/give maps to the give-new.twig file.
So the question is: How do I know which twig is invoked by a URL? I am pretty sure that there isn't any Angular code doing this, the Angular code bundle references are in the twig file, but how that twig is invoked is a mystery. Where do I start in finding the reference?
config/routes.phpfile, see if it shows up in there.