Configuring a site’s default home URL within a single post
-
I have a blog that’s available in two languages using Polylang. I have a taxonomy called?artists?under which several?artist names?serve as terms. When writing, the practice is to hyperlink the artist’s name when it is first mentioned. I do this by highlighting the same and inputting only the subdirectory?
/artists/example-artist
?(as opposed to writing the home URL + the subdirectory). This results in the hyperlinked artist name having the linkhttps://www.exampleblog.com/artists/example-artist
, which is correct.I recently decided to turn?artists?into a multilingual taxonomy, hence, there now exists equivalent archives in the second language for each artist name. An archive for an artist may now be found at
https://www.exampleblog.com/artists/example-artist
orhttps://www.exampleblog.com/ph/artists/example-artist
, depending on the current language.Basically, I’m trying to make all hyperlinked artist names inside a post go to the correct archive version depending on the language set, especially while in the second language that should have the?
/ph
?before the subdirectory/artists/example-artist
.I do not have issues when a single post with such hyperlink is viewed on the main language, however, inside a single post in, say, the Philippine version (
https://www.exampleblog.com/ph
), a hyperlinked artist name does not link to?https://www.exampleblog.com/ph + /artists/example-artist
?and remains as is?https://www.exampleblog.com/artists/example-artist
, thus this question.All links on the blog return to the?correct
/ph
?home when the website is switched to that language. I only have a problem with this second language home URL not being recognized inside the post.Regardless if there’s Polylang or not, is it possible to change a blog’s default home URL within a single post so when a hyperlink written only with the subdirectory will automatically get attached to that URL on the front-end? Appreciate any advice.
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.