1

After install DXA, we want to create a new News Article, which we follow the process be introduced here: Adding a News Article Page

The page can be created success, but the URL inside the Experience Manager is wrong. It use: http://dxaexample.ubi.com/articles/news/MyNews1.html, but the correct link should be http://dxaexample.ubi.com/articles/news/MyNews1, without the file extension.

How can we let Experience Manager understand current DXA site route configure and use the correct URL?

  • Pages in Tridion always have an extension - so Experience Manager is just using the URL as stored in Tridion. You may have to implement a redirect for this. – Nuno Linhares Mar 9 '17 at 20:59
  • Thanks Nuno for your info. Does it mean we will always face 404 error inside the Experience Manager if we follow this doc to create new article inside DXA site, unless we implement our own redirect logic here? – qchen01 Mar 9 '17 at 21:32
  • Also could you please detail a bit what kind of redirect we could add here? – qchen01 Mar 9 '17 at 21:47
  • Although DXA supports extensionless URLs, it should handle URLs with .html extension just fine. Which exact SDL Web version are you using? – Rick Pannekoek Mar 9 '17 at 21:59
  • Current version is SDL WEB 8.1 – qchen01 Mar 9 '17 at 22:54
1

There was a bug in XPM 8.1.0 which resulted in such problems when creating new Pages. This has been fixed in XPM 8.1.1 (aka Web 8 CU 1). See http://docs.sdl.com/LiveContent/content/en-US/SDL%20DXA-v4/GUID-6ADBA0DA-7419-4888-99E6-3D6EE9787A09

Above topic mentions the official solution to the problem: upgrade to SDL Web 8 CU 1. An older version of the topic also mentioned work-around: http://docs.sdl.com/LiveContent/content/en-US/SDL%20DXA-v3/GUID-6ADBA0DA-7419-4888-99E6-3D6EE9787A09

  • This could solve the URL issue, but we still face another 404 error. The URL is correct, for somehow, it always show 404 first, then after 1 to 2 seconds, if we refresh the same URL again, the page will load. Is it because the XPM try to load a page when its publish not be finished yet? – qchen01 Mar 12 '17 at 13:30
  • XPM Session Preview should be used to immediately show the new Page (even before its published). Is XPM Session Preview working properly (i.e. do you see the changes you make in XPM after you press the Update Preview button)? – Rick Pannekoek Mar 13 '17 at 7:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.