2

I have an MVC widget with Index method that has RelativeRoute attribute, but when calling the route relative to its page, the content is rendered alone and ignored the template/page, which is against what is mentioned in this docs (http://docs.sitefinity.com/feather-use-the-relative-routes-api)

My Header and Footer SfPlaceholder are ignored and do not render content.

Knowing that I am using pure MVC mode and an .cshtml layout file.

copoet
  • 169
  • 11
  • what exactly do you want to do? – Veselin Vasilev Apr 12 '17 at 05:36
  • Giving my MVC widget a relative route to the page it is located in! – copoet Apr 13 '17 at 08:34
  • 1
    Ok, but isn't it working without it? I mean /page would invoke the Index action, /page/details will invoke the Details action, etc. – Veselin Vasilev Apr 14 '17 at 05:27
  • actually i also got this issue, the problem is the entire widget (and down below) is not rendered at all and it got `Server cannot append header after HTTP headers have been sent.` error on the log. The code for `Index()` also not invoked at all. However if the `[RelativeRoute]` attribute is removed, it works properly again. – Bagus Tesa Jul 24 '18 at 07:31

0 Answers0