I'm currently experiencing a very strange issue which I can't find any reason to it.
I have a theme which is working fine on all servers. Now, I have one client who is having issues with it. The problem is that the function get_page_template_slug() returns the theme folder name.
Ex: theme/template-home.php
It should be just template-home.php without the theme folder name. How can this be?
Hope someone could help me out.