seems like a very trivial problem but I am unable to figure it out.
I am on page http://example.com/emails
and I would like to add a hyperlink as
<a href="inbox">inbox</a>
this results in a http://example.com/inbox
but I would like it to go to http://example.com/emails/inbox
Obviously I can do that by writing full href link
<a href="emails/inbox">inbox</a>
Other method is using javascript to get the current window url and append href with that.
but I am wondering if there is already a way to handle this simply in html without using javascript just by using some relative url scheme.