0

I'm using the info found here to add a full screen option to a component. The code looks like this:

<a href="<?php echo Juri::getInstance().'&tmpl=component&return='.$this->return; ?>">

However, the link returns a 404 if SEF URLs are enabled. I also see this problem when I use a static, non-SEF link like this:

<a href="index.php?option=mycomponent&view=thisview&tmpl=component&return='.$this->return; ?>">

Is it possible to use the full screen / tmpl=component view with SEF URLs?

1 Answer 1

2

Did you try it with JRoute?

<a href="<?php echo JRoute::_('index.php?option=mycomponent&view=thisview&tmpl=component&return=' . $this->return); ?>">

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.