-
AuthorPosts
-
brentwilliams2 Friend
brentwilliams2
- Join date:
- January 2013
- Posts:
- 231
- Downloads:
- 0
- Uploads:
- 23
- Thanks:
- 4
- Thanked:
- 33 times in 1 posts
May 23, 2013 at 7:19 pm #187729When setting up a job alert, after clicking save the page is redirected to:
http://www.mysite.com/component/jajobboard/jajobalerts?Itemid=0
Instead of redirecting back to the main alerts page:
HeR0 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
May 24, 2013 at 2:34 am #493792Hi Brentwilliams2,
Yes, because the Itemid value is zero, so it can not be redirected to job-alert menu page.
Regards
brentwilliams2 Friendbrentwilliams2
- Join date:
- January 2013
- Posts:
- 231
- Downloads:
- 0
- Uploads:
- 23
- Thanks:
- 4
- Thanked:
- 33 times in 1 posts
May 24, 2013 at 2:18 pm #493865Ok, then how do I change the Itemid? As it is, the user isn’t sent to a place with a menu item, so no modules are shown. This essentially means they have no idea where to go at this point.
HeR0 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
May 25, 2013 at 2:01 am #493886Brentwilliams,
To be frank, I don’t know why your site is linked to this url http://www.mysite.com/component/jajobboard/jajobalerts?Itemid=0 instead of http://www.mysite.com/job-alert
If you have done some customizations in Job alerts feature, please roll it back.
This feature on our demo site is still working fine now.
Regards
brentwilliams2 Friendbrentwilliams2
- Join date:
- January 2013
- Posts:
- 231
- Downloads:
- 0
- Uploads:
- 23
- Thanks:
- 4
- Thanked:
- 33 times in 1 posts
May 25, 2013 at 11:19 pm #493963Yeah, that may be the issue… Oh well.
brentwilliams2 Friendbrentwilliams2
- Join date:
- January 2013
- Posts:
- 231
- Downloads:
- 0
- Uploads:
- 23
- Thanks:
- 4
- Thanked:
- 33 times in 1 posts
May 25, 2013 at 11:58 pm #493964WAIT! I just figured it out (kind of). The problem is if you change the frequency to “Daily” rather than “None”. Take a look at your demo site. If you don’t change the frequency and leave it as “NONE”, then it redirects properly to this link:
http://demo25.jobboard.joomlart.com/job-alert.html
BUT, if you change the frequency to “Daily”, for example, it will redirect to this link:
http://demo25.jobboard.joomlart.com/component/jajobboard/jajobalerts.html
That is where the redirect is breaking, although I have no idea what the fix is…
Whew, I thought I was going crazy 🙂
HeR0 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
May 27, 2013 at 3:54 am #494016Hi Brent,
For redirect to link http://demo25.jobboard.joomlart.com/component/jajobboard/jajobalerts.html , please edit file componentscom_jajobboardcontrollersjajobsalert.php .
– Go to function save ( line 60 )
– Add this line of code
[PHP]$Itemid = JRequest::getInt(“Itemid”);[/PHP]
under line
[PHP]JRequest::checkToken() or jexit(‘Invalid Token’);[/PHP]– Change this line
[PHP]$this->setRedirect(JRoute::_(“index.php?option=”.JBCOMNAME.”&view=jajobalerts&Itemid=” . JRequest::getInt(“Itemid”), false), $msg);[/PHP]
to
[PHP]$this->setRedirect(JRoute::_(“index.php?option=”.JBCOMNAME.”&view=jajobalerts&Itemid=” . $Itemid, false), $msg);[/PHP]Hope this helps.
Regards
brentwilliams2 Friendbrentwilliams2
- Join date:
- January 2013
- Posts:
- 231
- Downloads:
- 0
- Uploads:
- 23
- Thanks:
- 4
- Thanked:
- 33 times in 1 posts
November 22, 2013 at 7:43 pm #513203Hi Her0,
I just noticed your reply, and your fix worked perfectly. Thanks! -
AuthorPosts
This topic contains 8 replies, has 2 voices, and was last updated by brentwilliams2 11 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum