SAP Knowledge Base Article - Public

3045707 - Blocking Links with Bad Phrases from Linking back to Career Site - Recruiting Marketing

Symptom

Within b2105 release Career Site Builder provides customers with ways to block links with bad phrases from linking back to their RMK site.


Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Environment

SAP SuccessFactors Recruiting Marketing (RMK) 

Reproducing the Issue

  1. Go to Google and search for your RMK site;
  2. You will see some RMK links including bad phrases or advertisements associated to your brand. Such pages will have search links that include /search/ in the URL.

Cause

Search pages links do not have the following meta tag so they are indexed by search engines like Google.


<meta name="robots" content="noindex">

Resolution

B2105 Enhancement

This enhancement provides customers with ways to block links with bad phrases from linking back to their RMK site. In CSB > Settings > Site Configuration > SEO Settings tab will have two options to include <meta name="robots" content="noindex"> in such pages.


Option 1: NoIndex Search Pages – Turned Off

  • user-generated /search/ pages that ‘contains’ words defined in Terms to Avoid will not be indexed.


Option 2: NoIndex Search Pages – Turned On

  • user-generated /search/ pages will not get indexed.


Temporary Workaround

Customers that don't want to wait until the b2105 deployment for Production can take the following steps as a workaround:


1. Navigate to Career Site Builder > Appearance > Global > JavaScript;

2. Include the below JavaScript code:

    Your code must be included between script tags as follow:

    Java Script Code

     for (i=0;i<document.head.children.length;i++){

    if ((window.location.href.indexOf('/search') > 0) && !window.location.href.endsWith('/search/')){

        if (document.head.children[i].name !== null && document.head.children[i].name === 'robots'){

            document.head.removeChild(document.head.children[i]);

            break;

        }

    }

    }

    if ((window.location.href.indexOf('/search') > 0) && !window.location.href.endsWith('/search/')){

        var metaRobots = document.createElement('meta');

        metaRobots.name = 'robots';

        metaRobots.content = 'noindex';

        document.head.appendChild(metaRobots);

    }

    3. Save the configuration.

    4. After completing the previous steps, you should ask Google to recrawl the site (https://developers.google.com/search/docs/advanced/crawling/ask-google-to-recrawl).


    As a result of such actions, the user-generated search pages will not be indexed anymore and will contain <meta name="robots" content="noindex">.

    See Also

    3010509 - Best Practices to Avoid Undesired Google Search Results - Recruiting Marketing

    Keywords

    Bad Phrases, RMK, Page, Search, Google, Index, Recruiting Marketing , KBA , LOD-SF-RMK-CSB , Career Site Builder , Product Enhancement

    Product

    SAP SuccessFactors Recruiting all versions

    Attachments

    Pasted image.png