using "./" in href interpreted as one navigational level up as opposed to root
-
My question is how to have “./” interpreted correctly using when using custom permalinks option /%postname%/ ?
I’m using apache 2.2 and in wordpress, the permalinks custom option with /%postname%/ and it is correctly generating the navigation and page urls. However it seems the “./” in my href links is being interpreted relative to the page I am linking from (currently viewing) as opposed to the document or site root. For example if I am on the history page under the about section of the site:
https://localhost/about/history
and I have a link in the content to navigate from the history page to the staff page:
the “./” is being interpreted as “https://localhost/about” as opposed to just “https://localhost” where, when mousing over the link it reads:
https://localhost/about/about/staff
Same happens if I try to create a link to another part of the site. from this same history – https://localhost/about/history – page:
the “./” is interpreted as:
thus making the link read on mouse over:
https://localhost/about/news/articles”
as opposed to
https://localhost/news/articles”
What need be done to get that “./” to be interpreted as the top level wordpress directory as opposed to it being interpreted as one navigational level above the currently viewed document?
- The topic ‘using "./" in href interpreted as one navigational level up as opposed to root’ is closed to new replies.