Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Public Forum / Main Forum / 301 redirect on the list and ads

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

× OLD Forum post could be checked here : forum.joomprod.com

301 redirect on the list and ads

More
9 years 10 months ago - 9 years 10 months ago #12225 by Max1985
Replied by Max1985 on topic 301 redirect on the list and ads
Hello!
I try to do so.
In the file:
components/com_adsmanager/views/details/view.html.php
After the lines:
$content = $contentmodel->getContent($contentid,false);
added by:
$app->redirect(TRoute::_('index.php?option=com_adsmanager&view=details&id='.$content->id.'&catid='.$catid.''.$itemid, 1));
Redirect works like, but it causes an error: The page isn't redirecting properly
What's wrong?
Last edit: 9 years 10 months ago by Max1985.
More
9 years 10 months ago #12232 by loic
Replied by loic on topic 301 redirect on the list and ads
Hello,

could you display on a var_dump the string
index.php?option=com_adsmanager&view=details&id='.$content->id.'&catid='.$catid.''.$itemid

I would like to know if the link is correct.

Best regards.
More
9 years 10 months ago #12236 by Max1985
Replied by Max1985 on topic 301 redirect on the list and ads
string(62) "index.php?option=com_adsmanager&view=details&id=15638&catid=60" 
More
9 years 9 months ago #12245 by loic
Replied by loic on topic 301 redirect on the list and ads
Hello,

The link is correct, the only weird thing is that the Itemid is empty, but that is not the cause of the error.

Have you tried to disable the SEF of Joomla to see if it works ?

Best regards.
More
9 years 9 months ago #12250 by Max1985
Replied by Max1985 on topic 301 redirect on the list and ads
Hello!
I Tried. The result is the same.
More
9 years 9 months ago #12271 by tompap
Replied by tompap on topic 301 redirect on the list and ads
And what is the content of :
TRoute::_('index.php?option=com_adsmanager&view=details&id='.$content->id.'&catid='.$catid.''.$itemid, 1)
Moderators: perry
Time to create page: 0.167 seconds
Powered by Kunena Forum