Core: updated get_full_url

Added protocol detection (http vs. https)