Skip to content

Commit

Permalink
Rework Home Site display
Browse files Browse the repository at this point in the history
- Having the line break in the href string cause the spaces to be
  interpreted as part of the URL.
  • Loading branch information
gregcorbett committed Oct 12, 2023
1 parent af72b89 commit afc6eb6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions htdocs/web_portal/views/user/view_user.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,12 @@
<tr class="site_table_row_2">
<td class="site_table">Home Site</td>
<td class="site_table">
<a href="index.php?Page_Type=Site&amp;id=
<?php echo $params['user']->getHomeSite()->getId()?>">
<?php xecho($params['user']->getHomeSite()->getShortName()) ?>
</a>
<?php
$homeId = $params['user']->getHomeSite()->getId();
echo "<a href=\"index.php?Page_Type=Site&amp;id=$homeId\">";
echo $params['user']->getHomeSite()->getShortName();
echo "</a>";
?>
</td>
</tr>
<?php } ?>
Expand Down

0 comments on commit afc6eb6

Please sign in to comment.