Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Suggested answer

Is it possible to update the permalink formatting of KB articles to include the name instead of an ID?

(0) ShareShare
ReportReport
Posted on by 36

We want to modify the permalink to display the KB article name instead of the KB article id number. Has anyone been able to do this successfully? 

pastedimage1675806021099v1.png

  • Suggested answer
    Amit Katariya007 Profile Picture
    Amit Katariya007 9,150 Super User 2024 Season 1 on at
    Is it possible to update the permalink formatting of KB articles to include the name instead of an ID?
    In Dynamics 365, the default behavior for knowledge base (KB) article URLs typically includes the article ID rather than the article title or name, as this ensures uniqueness and avoids issues with duplicate names.
     
    However, you can give it a try by modify the permalink to use the KB article name instead, though below requires customization.
     
    1. Enable Custom URL Generation:
     
    If you have access to Dynamics 365's Web API, you can use it to retrieve and display the KB article name in the URL dynamically.
     
    Create a custom field for the URL or slug, such as "article-name" or "slug," and populate it with a URL-friendly version of the article name (removing spaces, special characters, etc.).
     
    2. Rewrite URLs Using JavaScript or Code:
     
    Use JavaScript on your portal (e.g., Power Pages or Power Apps Portal) to intercept requests to KB article URLs. When a KB article page loads, check for a custom field, like the article name.
     
    Modify the URL dynamically to replace the ID with the article name. For example, you could create a URL format like /kb/{article-name} rather than /kb/{article-id}.
     
    3. Redirect or Route to Custom URLs:
     
    You may need to add server-side logic or a routing rule that maps article names to their respective KB records. For Power Pages, you can use Liquid templates or portal code to set up friendly URLs.
     
    Ensure that your routing rules handle potential duplicate article names gracefully. You might consider appending a unique identifier to any duplicate names or validating unique names upon article creation.
     
    Some additional points to consider:
     
    Limitations in Dynamics 365 OOB: Without portal customization, Dynamics 365 doesn’t natively support changing URLs to display article names.
     
    Plugins and Web Resources: If further customization is needed, a plugin or web resource could be written to handle URL modifications at a deeper level, but this will increase maintenance.
  • JustRhonda Profile Picture
    JustRhonda 85 on at
    Is it possible to update the permalink formatting of KB articles to include the name instead of an ID?
    Are you using a Portal Page? I notice in the Customer Service Application, the link uses the GUID which means the link is tied to an article version. I would like to have a permalink but it seems like it is only available in a Portal which is disappointing. This also affects users that 'Favorite' or "Pin' articles. They aren't going to the latest version which can create an accuracy issue.
  • Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    RE: Is it possible to update the permalink formatting of KB articles to include the name instead of an ID?

    Hi Partner,

    Unfortunately, you can't modify the permalink to display the KB article name instead of the KB article id number.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans