“Container domain name” field is faulty – does not support my hostname
-
Hi there,
yesterday I came across this faulty input field under Plugin Settings > Advanced > “Container domain name” whilst I was trying to load the GTM over my own server.What I did:
I typed in this input field my new URL which in my case is “measure.web-netz.de” and I wonderd why I couldn’t see the GTM deliverd by my custom Server (Network Tab in Browser). Instead the fallback value was used and on the next page reload my custom URL was gone.Solution:
So I looked into the source code and found this regex(see screenshot) which is in charge of checking the hostname. This regex does not include the “hyphen” Symbol which is totally supported to have inside of a hostname.
So I added the hyphen to the Regex(see screenshot again) and it worked.Please add this small change to your Plugin.
Screenshot: https://prnt.sc/WR26x8HzriLu
Best Regards,
Malte
- The topic ‘“Container domain name” field is faulty – does not support my hostname’ is closed to new replies.