Expected Behaviour:
For my home network I have a custom domain, ie mydomain.com. The pihole is available at pihole.mydomain.com. Go to http://pihole.mydomain.com and use the web interface for pihole.
Actual Behaviour:
Going to http://pihole.mydomain.com causes the page load partially. When i check the dev tools of chrome, I can see that the page resources are trying to be loaded from
http://pi.hole/pihole/blockingpage.css
http://pi.hole/admin/scripts/vendor/jquery.min.js
http://pi.hole/admin/img/favicon.png
instead of
http://pihole.mydomain.com/pihole/blockingpage.css
http://pihole.mydomain.com/admin/scripts/vendor/jquery.min.js
http://pihole.mydomain.com/admin/img/favicon.png
Oddly enough, if I access the web page using the ip address (the same which maps to pihole.mydomain.com), everything works fine.