Button link on component dashboard incorrectly links back to main home dashboard

26 views
Skip to first unread message

Red Ant

unread,
Jan 3, 2023, 3:17:19 AM1/3/23
to Joomla! General Development
Hi

I have a custom component on the administrator components dashboard which has this piece of code in which is a filter button:
<form><button type="submit" action="./administrator/index.php&option=com_cpanel&view=cpanel&dashboard=components" class="btn btn-sm btn-primary" >Filter</button></form>

However, when I click it it returns me to:
/administrator/index.php? instead of ./administrator/index.php&option=com_cpanel&view=cpanel&dashboard=components

I can't work out where the re-route is happening.

Can anyone please point me in the right direction to solve this?

Appreciated.

Red Ant

Mark Stanton

unread,
Jan 3, 2023, 5:30:48 AM1/3/23
to Joomla! General Development
Is that really the way it is or do you have a typo?  There should be a "?" between index.php and option.  With that, it works just fine here.

Red Ant

unread,
Jan 3, 2023, 5:45:20 AM1/3/23
to Joomla! General Development
Thanks for the reply.

Indeed, that was a typo. Apologies. However, even with the corrected URL, i.e. ...index.php?option=com_cpanel&...,  the behaviour remains the same. 

But thank you for testing on your side as that points to something different in my environment. At least I have a point of reference now and it's prompted me to think that this may be something as simple as a cached page.

Regards
Ant

Reply all
Reply to author
Forward
0 new messages