Change the redirect URL after an article submission

Discussion in 'General Chat' started by brainegg, Oct 13, 2008.

  1. brainegg

    brainegg New Member

    After somebody submits an article they're redirected to the BLOG section. How do you change it to where they're redirected to a different page?
  2. Vasily_B.

    Vasily_B. Project Manager

    Take a look into packages/publishing/submit_article.php, line #190
    PHP:
    $url = $config->config['packageList']['publishing'];
  3. brainegg

    brainegg New Member

    I want it to to redirect to the "Advertise Us" page or "/advertise.html". I also don't want them to be directed to the "waiting" page that appears before that. How would I do that?
  4. Vasily_B.

    Vasily_B. Project Manager

    File packages/publishing/templates/js/submit_article.js
    replace
    Code (Text):
    location.href = root;
    with
    Code (Text):
    location.href = root + 'advertise.html';
    After success submission it will redirect user without any messages to advertise.html page.
  5. brainegg

    brainegg New Member

    I tried that out and it doesn't seem to be working.
  6. Vasily_B.

    Vasily_B. Project Manager

    Please, try to clear browser cache.
  7. brainegg

    brainegg New Member

    Oh ok. Thanks a lot!
  8. Vasily_B.

    Vasily_B. Project Manager

    You are welcome.

Share This Page