Anchor <a> + Base URL Link
If I'm on a page, for example
http: //localhost/balibar.co/? dating = dating-articles-and-information
and I want to link the links to the base URL
Is there a way to do this without hard-coding URLs?
I tried:
<a href="/"></a>
<a href="#"></a>
will use multiple domains for this page, so I don’t want to hardcode the domain name if possible.
+5
6 answers