-
Notifications
You must be signed in to change notification settings - Fork 21
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
Incorrect parsing of slug links inside Tip blocks #14
Comments
Works fine with docs.telerik.com/devtools/justmock/getting-started/quick-start (link to the article - https://github.com/telerik/justmock-docs/edit/master/getting-started/quick-start.md). Can you check whether the slugs exist? |
The JustMock article does not have the custom alert blocks from the ajax docs. My best guess is that the liquid tags within custom blocks are not evaluated at all. I think the fix we used to have for this was to make sure the custom blocks parsers either ran first, or ran last, perhaps Ianko Dzhemerenov will remember more, he wrote them. The issue still manifests in the ajax docs, here is another article (see the Sample markup that causes the problem
Resulting link Correct slug is present in the article: https://github.com/telerik/ajax-docs/blob/master/installation/which-file-do-i-need-to-install.md |
Here is another example for working slug in a custom alert block - https://docs.telerik.com/devtools/wpf/controls/radbulletgraph/radbulletgraph_overview |
Here is another example of it not working in a custom alert block (see the second block): http://kendobuild-staging.openstack.progress.com/blazor/components/window/size The problem comes from the |
The OnSeriesClick link in the red note does not work properly. |
One more not parsed slug in https://docs.telerik.com/devtools/aspnet-ajax/controls/htmlchart/appearance-and-styling/legend-settings the Visual Templates link in the tip down in the Appearance section And one more with another type of note: https://docs.telerik.com/devtools/aspnet-ajax/controls/treeview/checkboxes/tri-state/tri-state-checkboxes-overview |
We isolated that all blocks except the default one ( |
Please refer to the following help article and have a look at the first 3 important fields: https://devdocs.telerik.com/devtools/winforms/controls/richtextbox/overview |
Yes, it's the slash in a slug in a |
Yes, the slashes are OK. But we have quite a huge number of articles with slashes in the slug. |
oh, yes, in AJAX where I first hit this we have thousands (probably > 7000), in Blazor I have about 120, I think. |
Substituting slashes with dashes is easy, nevertheless the count of the slugs...Find/Replace with a regex will do the job. |
But this will require redirects which are not always so easy to implement as it sounds. |
AFAIK, a slug is something like a 'key' for a given article? Why the redirect? |
I suppose because, on the website, the real URL (containing the slash) will be stored in the page, not the slug. If we change the slug, wouldn't it change the URL as well? Maybe I am wrong? |
The slug is an internal ID, it does not pertain to the actual URL. The file name determines the URL |
The issue seems to be related to the RegEx finding the slug inside the alert. It currently searches for "\w" and a dash:
A potential fix is to enhance the regex to include some of the more common characters as well This covers all the following scenarios: https://rubular.com/r/5xkN2wCqUr4mWN
Here is a ruby file that can be used for testing |
Description
Slug Links in Tip blocks are not interpreted/parsed correctly, hence the generated URL is invalid. Issue appears on multiple pages in the documentation.
To Reproduce
Visit any of the following pages, find the Tips that contain links and inspect the item.
Batch Editing Overview
Batch Editing Client-Side API
Data Editing - Custom Edit Forms
Additional context
Probably the entire Documentation is affected, where slug links are included in Tip blocks.
The text was updated successfully, but these errors were encountered: