Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search items don't appear when selecting certain languages #9

Open
crhistianramirez opened this issue Oct 21, 2024 · 0 comments
Open

Comments

@crhistianramirez
Copy link

crhistianramirez commented Oct 21, 2024

Steps to recreate:

  1. Navigate to demo
  2. Select language "Español"
  3. Click into preview search input
  4. Search results box opens but is empty

image

Affects the following languages:
image

The response for rfkid_6 appears to be empty when selecting one of those languages:

{
  "rfk_id": "rfkid_6",
  "type": "preview_search",
  "used_in": "common_across_pages",
  "entity": "content",
  "total_item": 0,
  "limit": 0,
  "offset": 0,
  "errors": [
    {
      "message": "page not found for uri",
      "type": "uri_not_found",
      "severity": "high"
    }
  ]
}

Full request:

{
 "context": {
   "page": {
     "uri": "/search-sdk/react/website/"
   },
   "user": {
     "uuid": "127817359-l8-ut-4l-1p-culd6gc87o2o3k6uyfp1-1729531203525"
   },
   "browser": {
     "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
   },
   "locale": {
     "language": "es",
     "country": "es"
   }
 },
 "widget": {
   "items": [
     {
       "rfk_id": "search_home_highlight_articles",
       "search": {
         "content": {},
         "facet": {
           "all": true
         },
         "offset": 0,
         "sort": {
           "choices": true
         },
         "filter": {
           "type": "eq",
           "name": "type",
           "value": "Insights"
         },
         "query": {
           "keyphrase": "sitecore"
         }
       },
       "entity": "content"
     },
     {
       "rfk_id": "highlight_title",
       "appearance": {
         "templates": {},
         "variables": {}
       },
       "entity": "content"
     },
     {
       "rfk_id": "home_hero",
       "appearance": {
         "templates": {},
         "variables": {}
       },
       "entity": "content"
     },
     {
       "rfk_id": "rfkid_6",
       "search": {
         "content": {},
         "suggestion": [
           {
             "name": "title_context_aware",
             "max": 6
           }
         ],
         "limit": 6
       },
       "entity": "content"
     },
     {
       "rfk_id": "demo_search_seo",
       "appearance": {
         "templates": {},
         "variables": {}
       },
       "entity": "content"
     }
   ]
 }
}

Full response

{
    "widgets": [
        {
            "rfk_id": "search_home_highlight_articles",
            "type": "content_grid",
            "used_in": "common_across_pages",
            "entity": "content",
            "sort": {
                "choices": [
                    {
                        "name": "featured_asc",
                        "label": "Featured Asc"
                    },
                    {
                        "name": "featured_desc",
                        "label": "Featured Desc"
                    },
                    {
                        "name": "last_modified_asc",
                        "label": "Last Modified Asc"
                    },
                    {
                        "name": "last_modified_desc",
                        "label": "Last Modified Desc"
                    },
                    {
                        "name": "title_asc",
                        "label": "Title ASC"
                    },
                    {
                        "name": "title_desc",
                        "label": "Title DESC"
                    }
                ]
            },
            "total_item": 0,
            "limit": 0,
            "offset": 0,
            "errors": [
                {
                    "message": "page not found for uri",
                    "type": "uri_not_found",
                    "severity": "high"
                }
            ]
        },
        {
            "rfk_id": "highlight_title",
            "type": "html_block",
            "used_in": "common_across_pages",
            "entity": "content",
            "appearance": {
                "html_names": [
                    "html_block",
                    "highlight_title",
                    "bid_848929"
                ],
                "css_names": [
                    "rfk2_html_block",
                    "rfk2_highlight_title",
                    "rfk2_bid_848929"
                ],
                "variables": {
                    "background-color": {
                        "expanded": true,
                        "required": true,
                        "value": "#111111",
                        "valueType": "string"
                    },
                    "border": {
                        "expanded": true,
                        "required": true,
                        "value": "none",
                        "valueType": "string"
                    },
                    "font_family_light": {
                        "expanded": true,
                        "required": true,
                        "value": "DIN-Light",
                        "valueType": "string"
                    },
                    "link-href": {
                        "expanded": true,
                        "required": true,
                        "value": "/",
                        "valueType": "string"
                    },
                    "link-text": {
                        "expanded": true,
                        "required": true,
                        "value": "Articulos Destacados",
                        "valueType": "string"
                    },
                    "margin": {
                        "expanded": true,
                        "required": true,
                        "value": "0",
                        "valueType": "string"
                    },
                    "padding": {
                        "expanded": true,
                        "required": true,
                        "value": "0",
                        "valueType": "string"
                    },
                    "text-color": {
                        "expanded": true,
                        "required": true,
                        "value": "#FFFFFF",
                        "valueType": "string"
                    }
                },
                "templates": {
                    "css": {
                        "devices": {
                            "pc": {
                                "content": "[data-rfkid].rfk2_html_block.rfk2_highlight_title h2{font-size:3rem;margin-bottom:45px;margin-top:45px;text-align:center;width:100%}"
                            }
                        }
                    },
                    "html": {
                        "devices": {
                            "pc": {
                                "content": "<h2 class=\"dark:text-gray-100\">Articulos Destacados</h2>\n\n\n\n\n\n\n\n\n"
                            }
                        }
                    }
                }
            },
            "errors": [
                {
                    "message": "page not found for uri",
                    "type": "uri_not_found",
                    "severity": "high"
                }
            ]
        },
        {
            "rfk_id": "home_hero",
            "type": "html_block",
            "used_in": "common_across_pages",
            "entity": "content",
            "appearance": {
                "html_names": [
                    "html_block",
                    "home_hero",
                    "bid_1049518",
                    "bid_849057"
                ],
                "css_names": [
                    "rfk2_html_block",
                    "rfk2_home_hero",
                    "rfk2_bid_849057",
                    "rfk2_bid_1049518"
                ],
                "variables": {
                    "cta-button-background": {
                        "expanded": true,
                        "required": true,
                        "value": "none",
                        "valueType": "string"
                    },
                    "cta-button-border": {
                        "expanded": true,
                        "required": true,
                        "value": "1px solid #55595c",
                        "valueType": "string"
                    },
                    "cta-button-border-radius": {
                        "expanded": true,
                        "required": true,
                        "value": "4px",
                        "valueType": "string"
                    },
                    "cta-button-container-background": {
                        "expanded": true,
                        "required": true,
                        "value": "none",
                        "valueType": "string"
                    },
                    "cta-button-container-padding": {
                        "expanded": true,
                        "required": true,
                        "value": "10px",
                        "valueType": "string"
                    },
                    "cta-button-container-padding-mobile": {
                        "expanded": true,
                        "required": true,
                        "value": "10px",
                        "valueType": "string"
                    },
                    "cta-button-height": {
                        "expanded": true,
                        "required": true,
                        "value": "40px",
                        "valueType": "string"
                    },
                    "cta-button-height-mobile": {
                        "expanded": true,
                        "required": true,
                        "value": "40px",
                        "valueType": "string"
                    },
                    "cta-button-hover-background-color": {
                        "expanded": true,
                        "required": true,
                        "value": "#55595c",
                        "valueType": "string"
                    },
                    "cta-button-hover-border": {
                        "expanded": true,
                        "required": true,
                        "value": "1px solid #55595c",
                        "valueType": "string"
                    },
                    "cta-button-hover-label-color": {
                        "expanded": true,
                        "required": true,
                        "value": "#FFF",
                        "valueType": "string"
                    },
                    "cta-button-label-color": {
                        "expanded": true,
                        "required": true,
                        "value": "#55595c",
                        "valueType": "string"
                    },
                    "cta-button-label-font-family": {
                        "expanded": true,
                        "required": false,
                        "value": "inherit",
                        "valueType": "string"
                    },
                    "cta-button-label-font-size": {
                        "expanded": true,
                        "required": true,
                        "value": "16px",
                        "valueType": "string"
                    },
                    "cta-button-label-font-size-mobile": {
                        "expanded": true,
                        "required": true,
                        "value": "16px",
                        "valueType": "string"
                    },
                    "cta-button-label-font-weight": {
                        "expanded": true,
                        "required": true,
                        "value": "normal",
                        "valueType": "string"
                    },
                    "cta-button-width": {
                        "expanded": true,
                        "required": true,
                        "value": "250px",
                        "valueType": "string"
                    },
                    "cta-button-width-mobile": {
                        "expanded": true,
                        "required": true,
                        "value": "100%",
                        "valueType": "string"
                    },
                    "cta-container-background": {
                        "expanded": true,
                        "required": true,
                        "value": "#f7f7f7",
                        "valueType": "string"
                    },
                    "cta-container-border": {
                        "expanded": true,
                        "required": true,
                        "value": "none",
                        "valueType": "string"
                    },
                    "cta-container-border-radius": {
                        "expanded": true,
                        "required": true,
                        "value": "4px",
                        "valueType": "string"
                    },
                    "cta-container-margin": {
                        "expanded": true,
                        "required": true,
                        "value": "10px auto",
                        "valueType": "string"
                    },
                    "cta-container-margin-mobile": {
                        "expanded": true,
                        "required": true,
                        "value": "10px auto",
                        "valueType": "string"
                    },
                    "cta-container-width": {
                        "expanded": true,
                        "required": true,
                        "value": "1024px",
                        "valueType": "string"
                    },
                    "cta-container-width-mobile": {
                        "expanded": true,
                        "required": true,
                        "value": "100%",
                        "valueType": "string"
                    },
                    "cta-container-width-tablet": {
                        "expanded": true,
                        "required": true,
                        "value": "100%",
                        "valueType": "string"
                    },
                    "cta-content-color": {
                        "expanded": true,
                        "required": true,
                        "value": "#55595c",
                        "valueType": "string"
                    },
                    "cta-content-font-family": {
                        "expanded": true,
                        "required": false,
                        "value": "inherit",
                        "valueType": "string"
                    },
                    "cta-content-font-size": {
                        "expanded": true,
                        "required": true,
                        "value": "16px",
                        "valueType": "string"
                    },
                    "cta-content-font-size-mobile": {
                        "expanded": true,
                        "required": true,
                        "value": "16px",
                        "valueType": "string"
                    },
                    "cta-content-font-weight": {
                        "expanded": true,
                        "required": true,
                        "value": "normal",
                        "valueType": "string"
                    },
                    "cta-content-padding": {
                        "expanded": true,
                        "required": true,
                        "value": "10px",
                        "valueType": "string"
                    },
                    "cta-content-padding-mobile": {
                        "expanded": true,
                        "required": true,
                        "value": "10px",
                        "valueType": "string"
                    },
                    "cta-image-height": {
                        "expanded": true,
                        "required": true,
                        "value": "auto",
                        "valueType": "string"
                    },
                    "cta-image-height-mobile": {
                        "expanded": true,
                        "required": true,
                        "value": "auto",
                        "valueType": "string"
                    },
                    "cta-image-padding": {
                        "expanded": true,
                        "required": true,
                        "value": "10px",
                        "valueType": "string"
                    },
                    "cta-image-padding-mobile": {
                        "expanded": true,
                        "required": true,
                        "value": "10px",
                        "valueType": "string"
                    },
                    "cta-image-width": {
                        "expanded": true,
                        "required": true,
                        "value": "100%",
                        "valueType": "string"
                    },
                    "cta-image-width-mobile": {
                        "expanded": true,
                        "required": true,
                        "value": "100%",
                        "valueType": "string"
                    },
                    "cta-title-color": {
                        "expanded": true,
                        "required": true,
                        "value": "#55595c",
                        "valueType": "string"
                    },
                    "cta-title-font-family": {
                        "expanded": true,
                        "required": false,
                        "value": "inherit",
                        "valueType": "string"
                    },
                    "cta-title-font-size": {
                        "expanded": true,
                        "required": true,
                        "value": "20px",
                        "valueType": "string"
                    },
                    "cta-title-font-size-mobile": {
                        "expanded": true,
                        "required": true,
                        "value": "16px",
                        "valueType": "string"
                    },
                    "cta-title-font-weight": {
                        "expanded": true,
                        "required": true,
                        "value": "normal",
                        "valueType": "string"
                    },
                    "cta-title-padding": {
                        "expanded": true,
                        "required": true,
                        "value": "10px",
                        "valueType": "string"
                    },
                    "cta-title-padding-mobile": {
                        "expanded": true,
                        "required": true,
                        "value": "10px",
                        "valueType": "string"
                    },
                    "cta_2_content": {
                        "expanded": true,
                        "required": true,
                        "value": "Brindamos a los especialistas en marketing y tecnólogos el poder de crear experiencias destacadas.",
                        "valueType": "string"
                    },
                    "cta_2_title": {
                        "expanded": true,
                        "required": true,
                        "value": "La plataforma de experiencia en la que confían los visionarios digitales",
                        "valueType": "string"
                    },
                    "cta_button_align": {
                        "expanded": true,
                        "required": true,
                        "value": "center",
                        "valueType": "string"
                    },
                    "cta_button_align_mobile": {
                        "expanded": true,
                        "required": true,
                        "value": "center",
                        "valueType": "string"
                    },
                    "cta_button_href": {
                        "expanded": true,
                        "required": true,
                        "value": "www.sitecore.com",
                        "valueType": "url"
                    },
                    "cta_button_label": {
                        "expanded": true,
                        "required": true,
                        "value": "Sitecore",
                        "valueType": "string"
                    },
                    "cta_content": {
                        "expanded": true,
                        "required": true,
                        "value": "Planifique con un propósito para cada oportunidad: descubra su estilo de marketing y aprenda lo esencial para liderar el camino con experiencias auténticas.",
                        "valueType": "html"
                    },
                    "cta_content_align": {
                        "expanded": true,
                        "required": true,
                        "value": "left",
                        "valueType": "string"
                    },
                    "cta_content_align_mobile": {
                        "expanded": true,
                        "required": true,
                        "value": "left",
                        "valueType": "string"
                    },
                    "cta_image_align": {
                        "expanded": true,
                        "required": true,
                        "value": "center",
                        "valueType": "string"
                    },
                    "cta_image_align_mobile": {
                        "expanded": true,
                        "required": true,
                        "value": "center",
                        "valueType": "string"
                    },
                    "cta_image_alt": {
                        "expanded": false,
                        "required": false,
                        "valueType": "string"
                    },
                    "cta_image_url": {
                        "expanded": false,
                        "required": false,
                        "valueType": "url"
                    },
                    "cta_title": {
                        "expanded": true,
                        "required": false,
                        "value": "Conoce cada instante",
                        "valueType": "string"
                    },
                    "cta_title_align": {
                        "expanded": true,
                        "required": true,
                        "value": "left",
                        "valueType": "string"
                    },
                    "cta_title_align_mobile": {
                        "expanded": true,
                        "required": true,
                        "value": "left",
                        "valueType": "string"
                    }
                },
                "templates": {
                    "css": {
                        "devices": {
                            "pc": {
                                "content": "[data-rfkid].rfk2_html_block.rfk2_home_hero .html_block{padding-bottom:80px;padding-top:80px;position:relative;z-index:1}[data-rfkid].rfk2_html_block.rfk2_home_hero .hero-background{background:linear-gradient(339deg, rgba(36,0,6,1) 0%, rgba(203,75,66,1) 52%, rgba(255,76,0,1) 100%);background-position:center;background-repeat:no-repeat;background-size:cover;height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}[data-rfkid].rfk2_html_block.rfk2_home_hero .hero-content{display:flex;justify-content:flex-start}[data-rfkid].rfk2_html_block.rfk2_home_hero .hero-main-content{-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);background:#f6f6f629;border-radius:5px;box-shadow:0 0 10px 0 rgb(0 0 0 / 20%), inset 0 0 200px rgb(255 255 255 / 30%);color:#ffffff;overflow:hidden;padding:2em 3em;position:relative;width:400px;z-index:1}[data-rfkid].rfk2_html_block.rfk2_home_hero h1{font-size:2.5rem;line-height:normal}"
                            }
                        }
                    },
                    "html": {
                        "devices": {
                            "pc": {
                                "content": "\n<section class=\"html_block\" >\n  \n  <div class=\"hero-background\">\n  </div>\n  <div class=\"flex justify-around\" style=\"justify-content: space-around;\">\n  <div class=\"hero-content\">\n    <div class=\"hero-main-content\">\n      <h1>Conoce cada instante</h1>\n\t  <div>Planifique con un propósito para cada oportunidad: descubra su estilo de marketing y aprenda lo esencial para liderar el camino con experiencias auténticas.</div>\n    </div>\n  </div>  \n  <div class=\"hero-content\">\n    <div class=\"hero-main-content\">\n      <h1>La plataforma de experiencia en la que confían los visionarios digitales</h1>\n\t  <div>Brindamos a los especialistas en marketing y tecnólogos el poder de crear experiencias destacadas.</div>\n    </div>\n  </div>  \n  </div>\n</section>"
                            }
                        }
                    }
                }
            },
            "errors": [
                {
                    "message": "page not found for uri",
                    "type": "uri_not_found",
                    "severity": "high"
                }
            ]
        },
        {
            "rfk_id": "rfkid_6",
            "type": "preview_search",
            "used_in": "common_across_pages",
            "entity": "content",
            "total_item": 0,
            "limit": 0,
            "offset": 0,
            "errors": [
                {
                    "message": "page not found for uri",
                    "type": "uri_not_found",
                    "severity": "high"
                }
            ]
        },
        {
            "rfk_id": "demo_search_seo",
            "entity": "content",
            "errors": [
                {
                    "message": "page not found for uri",
                    "type": "uri_not_found",
                    "severity": "high"
                },
                {
                    "message": "rfk_id not found",
                    "type": "rfkid_not_found",
                    "severity": "high"
                }
            ]
        }
    ],
    "dt": 1253,
    "ts": 1729532361090
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant