Relative image path in Page_Head not working

I have and image tag with a Relative image path in Page_Head (Server Event).

<a href="<?php echo $link_1; ?>"><img height="50px" src="phpimages/logo.png"  alt="My Logo" align="right"></a>

The image is displayed correctly when the URL has only one slash “/” in it from the Approot.
For instance : (http://127.0.0.1/Approot/TblClassesList).

But the relative path doesn’t work in view mode NOR edit mode :
http://127.0.0.1/Approot/TblClassesView/1?showdetail=PHPMAKER 2020 raised this issue, I Did not have this issue in previous versions.Is there a way to have the image display both in list mode and view/edit mode without putting and absolute path ??Thank you for your help

wilmino wrote:

http://127.0.0.1/Approot/TblClassesView/1?showdetail=

If you use “TblClassesView/1”, you are probably using v2021 (not v2020 as you said). If so, you do need to use absolute path or you can use <?= GetUrl("phpimages/logo.png") ?>.

Yes ! Thank you.
You where right for the Version, it’s 2021 not 2020.<?= GetUrl("phpimages/logo.png") ?>. WORKS perfectly !!