1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / A bug in news "tag"

A bug in news "tag"

2 posts, 0 answered
  1. MJia
    MJia avatar
    44 posts
    Registered:
    09 Jun 2009
    12 May 2010
    Link to this post
    I found a bug when using “tag" in News module.
    We added a bunch of tags for news including this one: Cote d'Ivoire
    But it cannot be add to News because the single appostrophe causes a javascript error.  We have to input Cote d\'lvoire for now.

    Any suggestions?

    Thanks.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    12 May 2010
    Link to this post
    Hi MJia,

    This is a known issue and it has been logged for fixing. Quick fix is overriding NavigateHostCommand in Telerik.News.WebControls.Admin.NewsTagsView and replacing the default view


    as the sample shows below

    public override void NavigateHostCommand<TView>(string param, string parentId, string resultMessage)
            {
                // HERE YOU NEED TO ESCAPE THE SINGLE QUOTATATION MARK AND MAKE RESPONSE REDIRECT
                string command = this.CreateHostViewCommand(typeof(TView).Name, param, parentId);
                if (string.IsNullOrEmpty(param))
                    command = ControlUtils.RemoveQueryStringKey(command, this.ParameterKey);
     
                if (HttpContext.Current != null)
                    HttpContext.Current.Response.Redirect(command);
            }


    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
2 posts, 0 answered