How to Create a Link that Goes Directly to Preview Mode

Question

How do I create a URL that points directly to preview mode of a page in the authoring environment?

i.e. to get to the preview of a page without first viewing edit mode and clicking on the preview icon.

Answer, Resolution

Add the following URL querystring parameter to the end of the URL wcmmode=preview

For example http://mysite.com:4502/cf#/content/geometrixx/en.html would be

http://mysite.com:4502/cf?wcmmode=preview#/content/geometrixx/en.html

The same can be applied without the content finder http://mysite.com:4502/content/geometrixx/en.html?wcmmode=preview

Applies to

CQ 5.2.x