title: Get Layout Friendly URL In Liferay
body: <p>I want to get a friendly URL for a layout based on layout id. For example, /web/group/page. Currently this is how I do it:</p>
  
  <pre><code>Layout layout = LayoutLocalServiceUtil.getLayout(groupId, false, layoutId);
  
  String groupFriendlyUrl = GroupLocalServiceUtil.getGroup(groupId).getFriendlyURL(); //will output /group
  String layoutFriendlyUrl = layout.getFriendlyURL(); //will output /page
  String webFriendlyUrl = String.format("/web%s%s", groupFriendlyUrl, layoutFriendlyUrl); //will output /web/group/page
  </code></pre>
  
  <p>I am wondering if there is a better way to do this where I can the full path, /web/group/page with one method. </p>