This is a migrated thread and some comments may be shown as answers.

[Solved] Configuring Custom CDN through web.config produces incorrect asset URLs

1 Answer 40 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
mosessaur
Top achievements
Rank 2
mosessaur asked on 03 Nov 2011, 08:08 PM
I decided to configure my assets using web.config.
So I made a group and called it cdn as the following:
<webAssets useTelerikContentDeliveryNetwork="true">
<scripts>
<add name="cdn" combined="false" compress="false" >
<items>
</items>
</add>
</scripts>
</webAssets>


And I rendered this group on the page:
htmlHelper.Telerik().ScriptRegistrar().jQuery(false).jQueryValidation(false).Scripts(s
=> s.AddSharedGroup("cdn")).Render()


And the result was in correct URLs:
<script type="text/javascript" src="/WebApp/Scripts/http:/ajax.aspnetcdn.com/ajax/jQuery/jquery-1.6.4.min.js"></script> 
<script type="text/javascript" src="/WebApp/Scripts/http:/ajax.aspnetcdn.com/ajax/jquery.ui/1.8.16/jquery-ui.min.js"></script>
<script type="text/javascript" src="/WebApp/Scripts/http:/ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.min.js"></script>
<script type="text/javascript" src="/WebApp/Scripts/http:/ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.validate.unobtrusive.min.js"></script>

Is there anyway to get this work correctly?

1 Answer, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 07 Nov 2011, 02:18 PM
Hi Mosessaur,

 Thank you for reporting this problem. We will address it with the upcoming Q3 2011 release which is due later this month.

 I have updated your Telerik points.

Regards,
Atanas Korchev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
General Discussions
Asked by
mosessaur
Top achievements
Rank 2
Answers by
Atanas Korchev
Telerik team
Share this question
or