securty fix: prevent app from crashing if someone changes hostname with an absolute URL