404 on preview

Brandon Prudent asked on May 11, 2018 00:20

For some reason when trying to browse preview URLs I'm getting a 404. It seems like the admin application doesn't know how to interpret the address. Here's an example of the URL I'm trying to access:

http://kadmin/CMSModules/Content/CMSDesk/Properties/sologic/cmsctx/pv/administrator/culture/en-US/wg/fc38b99e-fe8d-44c9-9095-d24145739990/h/3fe738b02dc4886af32a7e2d75e2c57f93d2e694c57601a5e1a50d771d749c15/-/en-us/blog/solutions-are-terrible-things-to-waste?uh=913a75a74a161e839239b8fcb2f332a18ee9304f6e4505b94feee7ca28ac392a

When I visit the front end at http://sologic/en-US/blog/RCA-Program-Dashboard it's working just fine. This is happening across installs / environments which leads me to believe there's a setting somewhere I've missed.

Correct Answer

Brandon Prudent answered on May 16, 2018 21:09

Okay, I got it worked out. Our "Presentation URL" under "Sites" did not have a leading http:// prefix. So the CMS was giving a path relative to the administration panel, which of course was never going to show a preview. Thanks for the help on this.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Juraj Ondrus answered on May 14, 2018 14:05

Hi,
From your descritpion is not clear how is the preview enabled in your MVC. Could you please confirm you have followed the documentation?

0 votesVote for this answer Mark as a Correct answer

Brandon Prudent answered on May 14, 2018 17:37

Hey there thanks for the response. I wasn't aware there was any other way to enable it, except by following the documentation. Yes - I've done all these steps, but half of them don't even matter because I am only working within Kentico itself to get a 404. It doesn't know how to resolve /CMSModules/Content/CMSDesk/Properties/sologic/cmsctx/pv/administrator/culture/en-US/wg/fc38b99e-fe8d-44c9-9095-. Is there something in the Web.config I could check perhaps?

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on May 15, 2018 06:48

Hi,
I Am confused - are you using MVC development model or not? Also, what is the exact Kentico version you are using? So I can test this on the same version - so far I tried Kentico 10 and 11 (portal engine) and it is working fine.

0 votesVote for this answer Mark as a Correct answer

Brandon Prudent answered on May 15, 2018 18:33

Does this help illustrate the problem - https://youtu.be/TN71ZLAabto

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on May 16, 2018 14:27

Hi,
I have just downloaded the sample MVC from our GitHub and I have used the sample Dancing goat site.
Then, I have followed the documentation on adding preview support to MVC and installed given NuGet package and everything is working fine.

Sample screen shots:
Preview in the Pages application
Preview using link generated on Properties -> General tab

0 votesVote for this answer Mark as a Correct answer

Brandon Prudent answered on May 16, 2018 17:15

Thank you for taking the time to do that. I'm certain if I did the same the results would be the same as well. Can you think of any setting or reason or something to possibly check on how my setup could be broken like that? I'm guessing you know more about the setup of the Kentico web project than I do. Are there perhaps any logs I could enable or things I could check to maybe resolve it? If I were delivering a project and an application page was coming back 404, I'd have a couple things to maybe check and see if it were installed / functioning properly.

Thank you for looking into it.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.