version 2023.1.314 missing css on cdn

1 Answer 1426 Views
Accessibility
Chris
Top achievements
Rank 1
Chris asked on 01 Apr 2023, 09:44 AM

I am getting an error "Sorry, the page you are looking for is currently unavailable." from your CDN loading css example:

https://kendo.cdn.telerik.com/2023.1.314/styles/kendo.bootstrap-v4.min.css

JavaScript works fine though:

https://kendo.cdn.telerik.com/2023.1.314/js/jquery.min.js

Is there a general rule of what cdn url to use?, I did put in a suggestion a while ago which got rejected would be handy if this was added:

    @{
        var version = typeof(Kendo.Mvc.KendoServices).Assembly.GetName().Version;
        string kendoCDN = $"//kendo.cdn.telerik.com/{version.Major}.{version.Minor}.{version.Build}";
    }
    <link href="@Url.Content(kendoCDN + "/styles/kendo.bootstrap-v4.min.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content(kendoCDN + "/styles/kendo.common-material.min.css")" rel="stylesheet" />
    <link href="@Url.Content(kendoCDN + "/styles/kendo.rtl.min.css")" rel="stylesheet" />
    <link href="@Url.Content(kendoCDN + "/styles/kendo.material.min.css")" rel="stylesheet" />
    <link href="@Url.Content(kendoCDN + "/styles/kendo.material.mobile.min.css")" rel="stylesheet" />


    <script src="@Url.Content(kendoCDN + "/js/jquery.min.js")"></script>
    <script src="@Url.Content(kendoCDN + "/js/jszip.min.js")"></script>
    <script src="@Url.Content(kendoCDN + "/js/kendo.all.min.js")"></script>
    <script src="@Url.Content(kendoCDN + "/js/kendo.aspnetmvc.min.js")"></script>
    <script src="@Url.Content(kendoCDN + "/js/kendo.timezones.min.js")"></script>

Chris

1 Answer, 1 is accepted

Sort by
0
Aleksandar
Telerik team
answered on 05 Apr 2023, 08:45 AM

Hi Chris,

As of v 2023.1.314 there has been a change in the structure of the CDN that serves the css files. 

The URLs of the Telerik CDN have the following structure:
  • https://kendo.cdn.telerik.com/themes/[THEMEVERSION]/[THEME]/[FILENAME]—The themes folder contains the .css files of the SASS themes for Telerik UI for ASP.NET Core versions after R1 2023 SP1.
  • https://kendo.cdn.telerik.com/[VERSION]/styles/[FILENAME]—The styles folder contains the minified .css files (SASS and LESS) for Telerik UI for ASP.NET Core versions before R1 2023 SP1.

The corresponding theme version can be found in the Compatibility section. So, for example, to load the bootstrap-main, bootstrap-4 or default theme the url would be:

//bootstrap-main theme
https://kendo.cdn.telerik.com/themes/6.2.0/bootstrap/bootstrap-main.css

//bootstrap-4 theme
https://kendo.cdn.telerik.com/themes/6.2.0/bootstrap/bootstrap-4.css

//default theme
https://kendo.cdn.telerik.com/themes/6.2.0/default/default-main.css

For further details refer to the documentation section.

Regards,
Aleksandar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Chris
Top achievements
Rank 1
commented on 05 Apr 2023, 09:24 AM

Thanks for providing a response.

I use nuget to update the libraries so it would be really handy to have a quick way of getting the URL without having to now manually lookup the theme number:

@Kendo.Mvc.CDN_URL

Can you consider amending the project url in nuget to a page listing the changes and known issues, so people can make an informed decision and have visibility of breaking changes.

Without this forum I wouldnt know about known issues e.g. https://www.telerik.com/forums/urgent-listview-completely-broken-v2023-1-314#1601851 and unless you know where to look I wouldn't have found this in your help. The CDN 404 page could have linked to a developer help page..

Aleksandar
Telerik team
commented on 07 Apr 2023, 08:50 AM

Form the example provided I see the version is obtained from the assembly properties, rather from the NuGet package metadata. As I'm no expert on the matter, I've raised the discussion internally with the corresponding team to investigate appropriate ways to provide additional information on the theme version used, if possible.

As for details on the changes we do provide such information. For example:

Chris
Top achievements
Rank 1
commented on 07 Apr 2023, 08:57 AM

👁‍🗨Thanks for taking time to post, been a Telerik license holder for 10 years+ and never seen these links & will bookmark them for future purposes.
Chris
Top achievements
Rank 1
commented on 07 Apr 2023, 09:19 AM

Are you able to update this status from unplanned on this item: https://feedback.telerik.com/aspnet-core-ui/1555011-add-version-number-or-cdn-url-to-assembly so it can be re-considered or should I re-post it?
Aleksandar
Telerik team
commented on 10 Apr 2023, 07:15 AM

I'm glad to hear the information provided was helpful.

Unplanned is the correct status of the item - the status means that the item is a valid feature request or bug report, not scheduled for implementation yet. You can find more details on the meaning of the statuses used in the Feedback portal here: https://feedback.telerik.com/aspnet-core-ui/status-info 

Tags
Accessibility
Asked by
Chris
Top achievements
Rank 1
Answers by
Aleksandar
Telerik team
Share this question
or