Customer Portal

Get Involved. Join the Conversation.

Topic

    Kesava Kumar
    Answer articles failed to open when searched from GoogleAnswered
    Topic posted September 29, 2016 by Kesava KumarGold Medal: 3,500+ Points 
    238 Views, 19 Comments
    Title:
    Answer articles failed to open when searched from Google
    Content:

    Hi All,

    I have a issue that when answer aritcle is searched from google it is giving one link, if answer contains special character like / then that link failed to load. It is fialing for the particular '/' only it is working for remaining special characgers like(-).

    Sample url would be like this.

    https://testcusthelp.com/app/answers/details/a_id/123/kw/testing answ/er article

    I tried to change the url by subscibing model on pre_page_render hook. But link provided by google is not even loading the pre_page_render hook and it is giving blank page.

    Any suggestions or work around for this to achieve will be helpful.

    Thanks

    Kesava

    Version:
    CP3.3

    Best Comment

    Kesava Kumar

    Hi All,

    Thanks for help of everyone.

    I am able to solve this for my self. I have achieved this in subscribed model of pre_page_render hook itself.

    What I was missing previously that, I haven't changing the kw to any other so it was infinite loop in reidrection of model.

    I renamed this to keyword someting like that, and encoded the kw parameter and skipping the infinite loop by cheking condition of kw parameter presents there or not.

    so the final url would be somehting like below.

    https://testcusthelp.com/app/answers/details/a_id/123/keyword/testing answ%2Fer article

    Thanks again for all your help special thanks for barrilito.

    Thanks

    Kesava

    Comment

    • Barrilito van Dijk

      Hi Kesava,

      In your example the "/" in the url let's OSC think you are using a parameter in the url, as the url has a rest notation.

      OSC will see this like:

      - parameter "kw" with value "testing answ"

      - parameter "er article" with no value

      That will not make the url fail. In your example the page won't load as you are pointing to a "details" page which does exist, you must mean a "detail" page. I guess this is just an example on a dummy url.

      But apart from that, try this in a list page with this last part of the url:

      https://testcusthelp.com/app/answers/list/kw/testing answ/er article

      You will see it will work but that the keyword is limited to a fraction of the url.

      You need to urlencode things that are in a url. Meaning, the backslash should be a "%2F".

      try:

      https://testcusthelp.com/app/answers/list/kw/testing answ%2Fer article

      Regards.

       

       

    • Kesava Kumar

      Hi Barrilito,

      Thanks for your reply, yes I have mentioned dummy url here.

      My question is how can we encode url this url is providing by google, it is not in our control, how can we access that?

      Any suggestions will be helpful.

      Thanks

      Kesava

       

    • Barrilito van Dijk

      Hi Kesava,

      I don't know precisely. Where do links with /kw/ come from? Do you have pages or answers where you have links like that. If you have links where you are in php mode, you should use the "urlencode" function to make the links url proof.

      Regards.

    • Kesava Kumar

      Hi,

      I don't have any links like that to edit and to encode those links.

      This is something might be framed by google.

      But if I came to know exactly where should I have to change(might be console level change) to avoid this failure that would be great.

      Thanks

      Kesava

       

    • Barrilito van Dijk

      Hi Kesava,

      Are you doing anything related to indexing and using a sitemap. Perhaps you are using a sitemap with wrong links?  Please check some more info here on indexing, and here on sitemaps.

      Regards.

    • Kesava Kumar

      Hi Barrilito,

      Sorry to tell this I am not able to open the links you have shared with me. Those links are failed to open and showing that answer is no longer available.

      Thanks
      Kesava

    • Barrilito van Dijk

      Hi Kesava,

      I'm sorry that you cannot open the links.

      The links work fine, if you are not able to open them, you don't have the correct priveleges which are organization based to access to information. Please contact your Oracle partner or representative to get access.

      Regards.

    • Erica (Leep) Anderson
      Kesava Kumar said:

      Sorry to tell this I am not able to open the links you have shared with me. Those links are failed to open and showing that answer is no longer available.

      Thanks
      Kesava

      As Barrilito mentioned, the Support Knowledge base has SLA's tied to its answers, because they are tied to the support packages that customers buy. If you can't access this answer, it's because this particular answer requires a SLA. Read here for more details on how access levels work: https://cx.rightnow.com/app/answers/detail/a_id/7750.

      Hope that helps and that you can work with someone on your team (administrator) to get the appropriate access!

      Thanks,
      Erica, Community Manager
    • Barrilito van Dijk

      Thanks for the more clear explanation here on the SLA's!

      Have a good weekend all.

      Regards!

    • Kesava Kumar

      Hi,

      Thanks for your replies Barrilito and elite.

      Yes now I can see answer articles posted by barrilito.

      In this url sitename/ci/sitemap I am able to see list of answer articles of our site.

      How can I edit those answer articles to encode them.

      Thanks

      Kesava

    • Dietrik

      Google only indexes the urls found on your site. It does not "invent" invalid urls.

      Do you have a real example of an invalid url ? The example seems something you''ve made up yourself, it is not a valid url that Google would index.

      The sitemap cannot be edited but you could create your own version. What is wrong with the existing one ?

      Regards

    • Kesava Kumar

      Hi Dietrik,

      Current sitemap having answer articles urls as non encoded.

      So urls which are having '/' special characters are fails to load that is the wrong thing with the existing one.

      Can I encode those urls, sitemap you could create your own version can you please elaborate this so that I can achieve this one.

      Thanks & Regards

      Kesava

    • Barrilito van Dijk

      Hi Kesava,

      The sitemap is just a file with answerlinks, so you can easily make (for example) a custom controller which generates a list with all answers...

      Regards,

    • Kesava Kumar

      Hi Barrilito,

      I am having production interface and testing interfaces seperately.

      Testing interface have same replica of production so if I need to change anything I have to do first this on testing interface.

      But here testing interface not having sitemap, so how can I achieve(enable sitemap) this.

      Any suggestions will be greatly helpful.

      Thanks

      Kesava

    • Barrilito van Dijk

      Hi Kesava,

      It's still not sure for me (and perhaps the others) what it is you are seeing and what is wrong?

      If your out of the box sitemap is not correct, perhaps better to raise a service request at Oracle?

      Regards.