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.