Link to custom admin view #1024

Closed
opened 2024-01-13 11:22:49 +00:00 by infotecnica · 0 comments

Steps to reproduce the issue

In a custom admin view I have a list of record with link to detail custom admin view.
this is the code:
<td class = "primo" ><a href="<?php echo'index.php?option=com_cat_prata&view=adminlist&view=cardview&id='. $item->id; ?>"><button>Mostra Scheda</button></a></td>
which generates the following link:
https://jcb.infotecnica.eu/administrator/index.php?option=com_cat_prata&view=adminlist&view=cardview&id=2

Expected result

I expect that clicking Mostra Scheda will open the detail view

Actual result

Instead the same list admin list opens.
The strange thing is that if I copy the link and paste it into the browser it opens the detail view correctly

System information (as much as possible)

  • OS Name & Version:
  • MySql Version: 10.3.38-MariaDB-0ubuntu0.20.04.1
  • Apache Version:
  • PHP Version: 8.1.27
  • Joomla Version: 3.10.12
  • JCB Version: 3.1.29 beta
  • Browser: Chrome

Additional comments

### Steps to reproduce the issue In a custom admin view I have a list of record with link to detail custom admin view. this is the code: `<td class = "primo" ><a href="<?php echo'index.php?option=com_cat_prata&view=adminlist&view=cardview&id='. $item->id; ?>"><button>Mostra Scheda</button></a></td>` which generates the following link: https://jcb.infotecnica.eu/administrator/index.php?option=com_cat_prata&view=adminlist&view=cardview&id=2 ### Expected result I expect that clicking Mostra Scheda will open the detail view ### Actual result Instead the same list admin list opens. The strange thing is that if I copy the link and paste it into the browser it opens the detail view correctly ### System information (as much as possible) - OS Name & Version: - MySql Version: 10.3.38-MariaDB-0ubuntu0.20.04.1 - Apache Version: - PHP Version: 8.1.27 - Joomla Version: 3.10.12 - JCB Version: 3.1.29 beta - Browser: Chrome ### Additional comments
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: joomla/Component-Builder#1024
No description provided.