Redirecting traffic from deleted Help Center articles Follow

Comments

21 comments

  • Avatar
    Joe Fedric (Edited )
  • Avatar
    Stephen

    Is there a non-Javascript method to control redirected traffic? Javascript assumes that users have JS enabled. This also doesn't seem very scalable to manage content long-term, because we have limited ability to see the redirects, for control and for analytics.

  • Avatar
    Scott

    There is an error in the following line:

    if ( isArticle && notDefaultLaugage && isErrorPage ) {

    Should be notDefaultLanguage.

     

  • Avatar
    Merav B

    Thanks for pointing on that error! It works for me now.

     

  • Avatar
    Jessie - Community Manager

    Thanks for the heads-up, Scott! I've contacted our Docs team so we can get that fixed.

  • Avatar
    Steve Graham

    I put in some redirects and it doesn't work on a phone - the "?mobile_site=true" parameter seems to cause a problem, although I'm not sure why.  I've tested it other ways and it works fine, even with dummy content after the ID or "?asdfads=asdfasdfasd" and it redirects.  But for some reason with "?mobile_site=true" it doesn't redirect.

  • Avatar
    Brooke Wayne

    I would like to second Stephen's point above - a non-JS method would be greatly appreciated! 

  • Avatar
    Nicole - Community Manager

    Hey Brooke - 

    Thanks for the feedback, and welcome to the Zendesk Community!

  • Avatar
    Jessie - Community Manager

    Hey Steve! Welcome to the Community!

    So I don't really know much of anything about JS, but I had a thought. Are you using the Copenhagen theme? It's a responsive theme so there's no mobile version per se...do you think that could be the issue?

  • Avatar
    Brooke Wayne

    Hey, wondering for an update on this! It's 2018, and we're hitting a lot of roadblocks where deleted links are becoming more costly for our product. 

    Would love to see a solution to set up redirect links for deleted articles - that doesn't involve Javascript. 

  • Avatar
    Ehsan Mafi

    +1

    When deleting or unpublishing an article, it would be awesome if you could specify right then & there the new article that you want to redirect the old link to.

  • Avatar
    Nicole - Community Manager

    Hey all - 

    Our Product Managers are finding it too difficult to follow all of the feedback coming in on article comments, and have asked that you head on over to the product feedback topic in the Community to share feedback and get updates on what's coming. 

     

  • Avatar
    Joe Fedric (Edited )

    Really?!

    Give us normal 30x redirect facilities for articles.  How hard can that be?  We're using two Help Centers, and I have to maintain two separate JS redirect banks on my HCs.  Also, your JS code here is pretty bad.  It doesn't allow for easy maintenance of the records you're updating, without refactoring it, because you have to try to match the redirects in the list in a 1:1 fashion.  I had a developer at my company see what you had offered, and how upsetting maintaining just a dozen redirects turned into (bad, bad, bad jumble).  In fact, here's the refactored code:

    //Use this for same domain redirects
    var one = {
    "Old ID 1" : "New ID 1", //Help Center 1, Old Article 1 to New Article 1
    "Old ID 2" : "New ID 2", //Help Center 1, Old Article 2 to New Article 2
    "Old ID 3" : "New ID 3", //Help Center 1, Old Article 3 to New Article 3
    "Old ID 4" : "New ID 4" //Help Center 1, Old Article 4 to New Article 4
    };
    //Use this for different domain redirects (multiple HCs)
    var two = {
    "Old ID 1" : "New ID 1", //Help Center 2, Old Article 1 to New Article 1
    "Old ID 2" : "New ID 2", //Help Center 2, Old Article 2 to New Article 2
    "Old ID 3" : "New ID 3", //Help Center 2, Old Article 3 to New Article 3
    "Old ID 4" : "New ID 4" //Help Center 2, Old Article 4 to New Article 4
    };
    //Loops for redirects
    for (var keytwo in two){
    if (window.location.href.indexOf(keytwo) > -1){
    window.location.href='http://your-first.domain.com/hc/en-us/articles/' + two[keytwo];
    }
    };
    for (var keyone in one){
    if (window.location.href.indexOf(keyone) > -1){
    window.location.href = 'https://your-second.domain.com/hc/en-us/articles/' + one[keyone];
    }
    };

    Provide a real facility for doing this.  Redirects are a huge part of how Zendesk works, and the fact that it's not included in the feature suite, and that you've asked us to abandon this thread for the feedback forums, where there is no thread on this topic (I searched 25 pages before I couldn't take it anymore) -- I am utterly stunned that you're claiming this is too difficult to follow.

    Perhaps you should put a product architect, instead of a product manager, on this problem.  The fact that the article was published over 2 years ago, with the JS code to work around the redirect problem we have with this system, is inexcusable.  It just needs to be fixed.  An explanation is not necessary.  A solution is, however.  Don't even get me started on how hard it is to pull a list of all tags out for reporting.  Some of the basic functions that ZD excludes makes for some serious sore spots, and that they've been unaddressed through a re-brand (over 14 months ago, btw), and are now being pushed around communities, baffles me.

    I also noticed that you've deleted most of the comments in this thread, several of them belonging to me.  This problem has been around FOREVER, and was addressed with this article beginning in 2014.  I've saved this answer so I can repost it, should your delete finger get "itchy".

  • Avatar
    Stephen

    "Product Managers are finding it too difficult to follow all of the feedback coming in on article comments." So you expect us, your customer, to sift through 121 pages of feedback points to submit our own comments? How about making it easy for us to be customers and to give feedback, and Zendesk taking the responsibility for cultivating our comments in a way that works for everyone? 

  • Avatar
    Brooke Wayne

    @stephen @joe: If it helps, I found a page in the Community that fits the topic and just copied + pasted my comment from above there.

    For what it's worth, I'm in complete agreement with both of your comments too.

  • Avatar
    Nicole - Community Manager

    Hey Stephen - 

    We're trying to simplify it by keeping all of the conversations in the Product Feedback threads. You can do a quick search to see if there's a thread relevant to your feedback and if not, create a new post. 

    We're trying very hard to cultivate your comments in a way that works for everyone, and that may be reflected in new processes or a different means of collecting feedback altogether in the future. For the moment, we are trying to focus things in the Product Feedback topic. 

     

  • Avatar
    David A. (Edited )

    Hi,

    How do I redirect a knowledgebase article to an external URL?

    In this case, the URLs are on our company website.

  • Avatar
    Vladan Jovic

    Hi David, in case you've missed it, here is my comment about this question:

    https://support.zendesk.com/hc/en-us/community/posts/360004154368-How-do-I-redirect-a-knowledgebase-article-to-an-external-URL-?page=1#community_comment_360001898947

    Let me know if this doesn't help. :)

     

  • Avatar
    David A.

    Awesome! Thank you, Vladan :)

  • Avatar
    Nan Yu

    Hey @vladen, @nicole / product managers at Zendesk. It's pretty disappointing that you don't offer basic 301 redirect functionality and we have to resort to JS hacks to make this work.

    Issues like this make it seem like our business is not something you're interested in keeping in the long run.

  • Avatar
    Kelly OBrien

    Is there a way to do this with deleted sections (instead of articles) - we've shifted articles from a discontinued section. 

Please sign in to leave a comment.

Powered by Zendesk