Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi To All,
Here I want to redirect on the external url like http:// when ContentService.Published event is fired from umbraco backoffice
Below I am going to share my code
protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) { ContentService.Published += ContentServicePublished; } private void ContentServicePublished(IPublishingStrategy sender, PublishEventArgs<IContent> args) { try { var context = UmbracoContext.Current; context.HttpContext.Response.Redirect("http://"); } catch (Exception ex) { var result = JsonConvert.SerializeObject(ex); } }
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Redirect on external URL like http://.com when contentservice Published event is fired manually.
Hi To All,
Here I want to redirect on the external url like http:// when ContentService.Published event is fired from umbraco backoffice
Below I am going to share my code
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.