Error on Internal links in Marker's description, depending on article menu position
Posted: 03 Mar 2023, 13:45
Hi
I encounter an issue with relative links in marker's description.
I saw another topic that could be related 'Hyperlinks in Phoca Maps Marker Description' .
In my case, Joomla was migrated from 3.10 to 4.2.8 but PhocaMaps is a fresh 4.0 installation
Configuration :
Joomla 4.2.8
PhocaMaps 4.0.0
Text Editor = JCE Pro 2.9.33
- Create a PhocaMap marker with an internal link in its description leading to a file or another article (relative path)
- Create an article with the link to the map
- Create two menu links to this article :
> At the root of main menu > OK
> In a sub menu > the menu name is added to the path
The link is right when editing in marker description : index.php?option=com_content&view=article&id=495:adhesion&catid=10024:non-categorise&Itemid=286
clicking on marker's link from a menu at root = ok
> http://localhost/site1/index.php?option ... Itemid=286
clicking on marker's link from a sub menu 'Annonces'
> http://localhost/site1[b]/annonces-mainmenu-52[/b]/index.php?option=com_content&view=article&id=495:adhesion&catid=10024:non-categorise&Itemid=286
Where annonces-mainmenu-52 is the name of the sub menu
Deleting it from the absolute path in the web browser make it works
This is the same with a link to a file
http://localhost/site1/[b]annonces-mainmenu-52/[/b]images/stories/navigation/r%C3%A9cits/mediterrannee_2012.pdf
Of course, I tested this case with an link directly in the article in case the issue is related to text editor > it works in any case
Workaround would be to create absolute links but it is not the target ;-)
Thanks
Manuel
I encounter an issue with relative links in marker's description.
I saw another topic that could be related 'Hyperlinks in Phoca Maps Marker Description' .
In my case, Joomla was migrated from 3.10 to 4.2.8 but PhocaMaps is a fresh 4.0 installation
Configuration :
Joomla 4.2.8
PhocaMaps 4.0.0
Text Editor = JCE Pro 2.9.33
- Create a PhocaMap marker with an internal link in its description leading to a file or another article (relative path)
- Create an article with the link to the map
- Create two menu links to this article :
> At the root of main menu > OK
> In a sub menu > the menu name is added to the path
The link is right when editing in marker description : index.php?option=com_content&view=article&id=495:adhesion&catid=10024:non-categorise&Itemid=286
clicking on marker's link from a menu at root = ok
> http://localhost/site1/index.php?option ... Itemid=286
clicking on marker's link from a sub menu 'Annonces'
> http://localhost/site1[b]/annonces-mainmenu-52[/b]/index.php?option=com_content&view=article&id=495:adhesion&catid=10024:non-categorise&Itemid=286
Where annonces-mainmenu-52 is the name of the sub menu
Deleting it from the absolute path in the web browser make it works
This is the same with a link to a file
http://localhost/site1/[b]annonces-mainmenu-52/[/b]images/stories/navigation/r%C3%A9cits/mediterrannee_2012.pdf
Of course, I tested this case with an link directly in the article in case the issue is related to text editor > it works in any case
Workaround would be to create absolute links but it is not the target ;-)
Thanks
Manuel