nicolaayan / EpiserverCmsAudit

MIT License
9 stars 20 forks source link

Failed to load resource: the server responded with a status of 404 (Not Found) #2

Closed oyvindwh closed 5 years ago

oyvindwh commented 6 years ago

I get a 404 error for all block types in the console and Usages shows 0 site(s), 0 block(s). Pagetypes works fine. See the attached image. This is a solution with 2 sites.

2018-07-27_13-26-13 2018-07-27_13-26-29

stibay commented 6 years ago

The problem is that episerver might not be mapped to /episerver so either change that to what yours is running under or change to relative paths instead of absolute path in _layout.cshtml.

F.ex instead of url: '/episerver/cmsaudit/cmsaudit/indexsiteaudit', to just url: 'cmsaudit/indexsiteaudit',

eripe commented 5 years ago

Could you please release a new nuget with this fix? The 1.2 package does not contain the relative url in webconfig. Thanks for a great plugin btw 👍