davidknipe / VisualCompare

Visual comparison option for the Episerver UI
MIT License
3 stars 2 forks source link

VisualCompare 404 #15

Open clintcfavor opened 9 months ago

clintcfavor commented 9 months ago

We currently have two language versions for our content but I'm getting 404 errors for VisualCompare when testing addon in localhost environment. Tried testing it with draft and published changes but got the same error message (screenshot below) image

Currently have these addon versions: VisualCompareMode - v1.1.0 EPiServer.CMS - v12.25.1

OMGPizzaGuy commented 8 months ago

Sorry for my slow reply - can you confirm if modules/_protected/VisualCompareMode/module.config exists in your solution and is set to copy to output directory?

It appears the route to VisualCompareController is not resolving properly. The route should be something like /EPiServer/VisualCompareMode/VisualCompare but yours is resolving to just /VisualCompare

OMGPizzaGuy commented 8 months ago

Version 1.2.0 should be available on the nuget feed soon. It makes some adjustments that might fix this, but a minimum should handle errors better. Please test and let me know your findings.

davidknipe commented 8 months ago

Version 1.2 is now available on the Optimizely Nuget feed

clintcfavor commented 7 months ago

Hi @OMGPizzaGuy, @davidknipe! Thanks for the replies and sorry for having to reply so late!

I've tested the addon again locally, but still gives me the 404 error (see below) image

Also, as what @OMGPizzaGuy has mentioned in the previous comment, it seems like the module.config is missing (see below) image

Have I missed a step other than installing the package? Gladly appreciate your replies!

OMGPizzaGuy commented 7 months ago

The latest changes include the module.config in the VisualCompareMode.zip package as we can leverage compiled views now. The zip package should also copy to the modules/_protected/VisualCompareMode directory on build. I'm not sure if it did or is only reference in that screenshot - you could look at the directory outside of Visual Studio to check.

Additionally, you need services.AddVisualCompareMode(); in Startup.cs to register the module.