hyperlink - HTML href tag. Add current path into href value -
when use url www.w3schools.com, redirecting me 404 not found page. don't want use http or https because url stored in database without http.
<!doctype html> <html> <body> <p>an absolute url: <a href="www.w3schools.com">w3schools</a></p> </body> </html>
if use protocol agnostic url should alleviate problem.
i.e. "//www.w3schools.com"
this should adopt necessary protocol (http, https, etc.) on own , prevent 404 error.
Comments
Post a Comment