test
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • brentwilliams2 Friend
    #187729

    When 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:

    http://www.mysite.com/job-alert

    HeR0 Friend
    #493792

    Hi Brentwilliams2,

    Yes, because the Itemid value is zero, so it can not be redirected to job-alert menu page.

    Regards

    brentwilliams2 Friend
    #493865

    Ok, 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 Friend
    #493886

    Brentwilliams,

    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 Friend
    #493963

    Yeah, that may be the issue… Oh well.

    brentwilliams2 Friend
    #493964

    WAIT! 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 Friend
    #494016

    Hi 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 Friend
    #513203

    Hi Her0,
    I just noticed your reply, and your fix worked perfectly. Thanks!

Viewing 8 posts - 1 through 8 (of 8 total)

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