public string GetRedirectLink(SearchObject searchObject) { StoreSearchInformation(searchObject); var holidaysItem = Sitecore.Context.Database.GetItem(SearchResultsPage); return(String.Concat(LinkManager.GetItemUrl(holidaysItem), GetPageLink(searchObject.Page))); }
public void StoreSearchInformation(SearchObject searchObject) { var session = System.Web.HttpContext.Current.Session; // Clear existing holiday search session session.Remove(Keys.HolidaySearchSession); session.Add(Keys.HolidaySearchSession, searchObject); }