User-1545767719 posted
Sohaib Toosy
e.g. if I am on page url: xyz.com/House/abc and then I click on menu's Society link (href="/Societies.aspx") then the url becomes xyz.com/house/abc/Societies
It seems that the FriendlyUrls is working properly. What is your issue?
Edit:
Sorry there is my oversight. Now I understand that you expect that clicking a link of href="/Societies.aspx" in the page http(s)://xyz.com/house/abc results in request to url of http(s)://xyz.com/Societies.aspx NOT http(s)://xyz.com/house/abc/Societies.aspx.
Although I have tested in my environment i.e., Web Forms application generated by a template of Visual Studio 2019 in which the FriendlyUrls is enabled by default, I cannot reproduce your problem.
In my environment, clicking a link of href="/Societies.aspx" results in the request of https://<hostname>/Societies.aspx. On first request browser request https://<hostname>/Societies.aspx as is and the web server returns HTTP 301 Moved Permanently
with Location: /Societies in response header. Then browser requests https://<hostname>/Societies accordingly and shows the page as expected.
After the first click browser always request https://<hostname>/Societies as the url is cached.
I do not know why your case is different from the above. I guess that something not mentioned in your question above causing your problem.