Jump to content


Photo

Image Galleries Module - Wrong redirect after save

Galleries Module redirect

  • Please log in to reply
3 replies to this topic

#1 k1000o

k1000o

    Advanced Member

  • Members
  • PipPipPip
  • 112 posts
  • LocationMadrid

Posted 04 June 2012 - 07:35 AM

Hello Jason

I've integrated the Images Galleries modules but there was a strange behavior after the save because we were redirected to a page were you only see the save portlet, loosing focus of the original object from were it was called.
To solve this issue I changed one of the getPortletDetailsUrl() function in the ImageCreateAndThumbnailsView module as follows

		protected function getPortletDetailsUrl()
		{
		   // return Yii::app()->createUrl('/' . $this->moduleId . '/defaultPortlet/details',
		   //							array_merge($_GET, array(
		   //												   'portletId'			   => $this->params['portletId'],
		   //												   'uniqueLayoutId'		  => $this->uniqueLayoutId,
		   //												   'clearCache'			  => '1')));
			return $this->params['redirectUrl'];
		}

It works but I am not sure if reloading the whole page is o.k, or some fixing need to be done to the original URL.
Can you give your feedback?

#2 Jason

Jason

    Administrator

  • Administrators
  • 864 posts
  • LocationChicago

Posted 04 June 2012 - 06:32 PM

Hello Jason

I've integrated the Images Galleries modules but there was a strange behavior after the save because we were redirected to a page were you only see the save portlet, loosing focus of the original object from were it was called.
To solve this issue I changed one of the getPortletDetailsUrl() function in the ImageCreateAndThumbnailsView module as follows

		protected function getPortletDetailsUrl()
		{
		   // return Yii::app()->createUrl('/' . $this->moduleId . '/defaultPortlet/details',
		   //							array_merge($_GET, array(
		   //												   'portletId'			   => $this->params['portletId'],
		   //												   'uniqueLayoutId'		  => $this->uniqueLayoutId,
		   //												   'clearCache'			  => '1')));
			return $this->params['redirectUrl'];
		}

It works but I am not sure if reloading the whole page is o.k, or some fixing need to be done to the original URL.
Can you give your feedback?

You are saying your fix works? It just reloads the whole page right? It doesn't seem like the best solution. We will need to dig further on this issue i think.

Jason Green
Zurmo Team
Need support? Upgrade now


#3 k1000o

k1000o

    Advanced Member

  • Members
  • PipPipPip
  • 112 posts
  • LocationMadrid

Posted 04 June 2012 - 07:28 PM

Yes my fix works. I know it's not the best solution.... Hope you find a better one

Find below the generated URL before the "Fix", maybe it can help

/app/index.php/colorCharts/defaultPortlet/details?id=2&portletId=9&uniqueLayoutId=ColorChartDetailsAndRelationsViewRightBottomView_9&clearCache=1

#4 Jason

Jason

    Administrator

  • Administrators
  • 864 posts
  • LocationChicago

Posted 05 June 2012 - 03:57 PM

ok thanks. At least it is working. we will have to investigate when we get more time

Jason Green
Zurmo Team
Need support? Upgrade now






Also tagged with one or more of these keywords: Galleries, Module, redirect

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users