Skip to content
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

angularjs kendojs [[[ being converted #327

Closed
apiercy78 opened this issue Dec 7, 2016 · 2 comments
Closed

angularjs kendojs [[[ being converted #327

apiercy78 opened this issue Dec 7, 2016 · 2 comments

Comments

@apiercy78
Copy link

I have been using this without fail for the longest time but now when I try to include Kendo JS or some AngularJS scripts I am getting Unexpected symbol error ].

Looks like the JS is still being translated at run time even though I have outgoing and Incoming filters set as below:

        UrlLocalizer.IncomingUrlFilters += delegate(Uri url)
        {
            if (url.LocalPath.ToLower().Contains("bundles") || url.LocalPath.ToLower().Contains("content") || url.LocalPath.ToLower().Contains("scripts"))
            {
                return false;
            }
            return true;
        };

        UrlLocalizer.OutgoingUrlFilters += delegate(string url, Uri currentRequestUrl)
        {
            Uri uri;
            if (Uri.TryCreate(url, UriKind.Absolute, out uri) || Uri.TryCreate(currentRequestUrl, url, out uri))
            {
                if (uri.LocalPath.ToLower().Contains("bundles") || uri.LocalPath.ToLower().Contains("content") || uri.LocalPath.ToLower().Contains("scripts"))
                {
                    return false;
                }
            }
            return true;
        };

I have included blacklist paths in the webconfig also.

@turquoiseowl
Copy link
Owner

Using the default nugget markup can conflict with JavaScript arrays. Have you considered alternative sequences? I use [#[message]#] for this reason.

https://github.com/turquoiseowl/i18n#nugget-markup-customization

@apiercy78
Copy link
Author

apiercy78 commented Dec 9, 2016 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants