Quantcast
Viewing all articles
Browse latest Browse all 2110

General Questions/New to Joomla! 5.x • url contains output=component and breaks page

Using Joomla! 5.1.0 Stable [ Kudumisha ]

I'm not sure if this is intended behaviour or not, but it is causing a problem:

I'm using Chronoforms8 which is excellent. It has a function to create a back button on a form to go to the previous page of the form, but when I use it, the string "&output=component" is added to the URL that is opened in the browser when the back button is pressed on the form.

The page that renders is the bare form with no css, no menu structure, no header, no footer etc. like it was intended to be a page for printing off.

If I remove the &output=component from the URL and reload the page, it loads up correctly.

Using this code from the Joomla documentation:

Code:

use Joomla\CMS\Uri\Uri;$uri = Uri::getInstance();$url = $uri->toString();print($url)
I can see that it contains the &output=component even though the url shown in the browser does not. I assume this is how the Chronoforms8 back button decides what URL to go to.

I can craft my own back button by removing that extra bit from $url, but I wondered if it is expected behaviour to have that &output=component in the URL and if the Joomla page is meant to work properly (ie with all the menu structure etc) when the URL contains that?

I couldn't see any mention of this on the forums before. Apologies if it has been asked before.

Statistics: Posted by bcraigie — Mon Jun 03, 2024 2:15 pm



Viewing all articles
Browse latest Browse all 2110

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>