How can i change the Link URL for the popoup on GENAI results
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2025 11:33 PM - edited 06-19-2025 12:09 AM
How can i change the Link URL for the popoup (Learn More) on GENAI results.
Currenlty it is redirecting to external link -
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1298697
Need to redirect to an internal KB Article
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2025 03:39 AM - edited 06-20-2025 03:40 AM
Hello @Manpreet Kaur,
To change the link URL within a GENAI result popup, you'll need to modify the code that generates the popup and its content. This typically involves accessing the specific element within the popup's HTML structure and updating its
href
attribute (for hyperlinks) or other relevant properties. The exact steps will depend on the specific GENAI tool or platform you are using. Here's a general approach:
-
1. Identify the GENAI tool/platform:Determine which GENAI tool or platform is generating the popup (e.g., a specific AI model, a chatbot, a tool within a larger platform like ServiceNow).
-
2. Locate the popup's code:Find the code responsible for creating the popup window and its content. This might involve searching through the tool's documentation, source code (if accessible), or configuration files.
-
3. Access the link element:Identify the specific HTML element (e.g., an
<a>
tag) that represents the link you want to modify within the popup. -
4. Update the
href
attribute:Use JavaScript to access the link element and update itshref
attribute with the desired new URL. For example:
JavaScript
// Assuming 'linkElement' is the reference to your link element
linkElement.href = "new_url_here";
- Test the changes: After making the changes, test the popup to ensure the link now points to the correct URL.
Example (Conceptual):
If you are using a GENAI tool within a ServiceNow environment and the popup is generated by a Virtual Agent, you might need to:
- Access the Virtual Agent's topic or script that creates the popup.
- Locate the HTML element for the link within the script's output.
- Use JavaScript to update the
href
of that link element with the new URL. - Test the change by triggering the Virtual Agent to display the popup.
Important Considerations:
-
Security:Be cautious when modifying code from external tools or platforms. Ensure any changes are made in a safe and controlled environment to avoid unintended consequences.
-
Documentation:Refer to the documentation of your specific GENAI tool or platform for guidance on customizing popups and links.
-
Testing:Thoroughly test your changes to ensure they work as expected and don't introduce any errors or unexpected behavior.
If you can provide more details about the specific GENAI tool or platform you are using, it may be possible to provide more specific instructions.
If this is helpful, please hit the thumbs up button and accept the correct solution by referring to this solution in future it will be helpful to them.
Thanks & Regards,
Abbas Shaik