daledotshan/liferay-portal — pull request #2 by yuhai (2012-11-26 03:27:47+00:00)
Title: LPS-31161  view web content access wrong page

After checked "Set as the Default Asset Publisher for This Page" in Asset Publisher Portlet Configuration, new created web content will include LayoutUuid param(the value won't not null) when add web content in Asset Publisher, and LayoutUuid is different in different pages. When choose "Link Portlet URLs to Page: one detailed page(test page)" in Asset Publisher Look and Feel, then click web content title created in other pages rather than test page, it will direct to other pages, not choosed link page(test page). So need to add the filter condition linkToLayoutUuid.equals(_article.getLayoutUuid()) in getURLViewInContext() method of JournalArticleAssetRenderer.java

Please help check it.