How to get the rendered Sitecore page html from a pipeline without making a webrequest to the application itself?

235 views Asked by At

For a Business question, I have created one specific detail page. Based on querystring parameters contents could be changed (dynamic contents are fetched from Datasource Repository by id) e.g.

*http://localhost/page/detail?id={88A1AA95-633D-4B0E-AAC7-BA0610F0V091}*

This is not SEO-friendly, so I created a pipeline to fetch the contents in a nicer way. I am using the Sitecore WebUtil to make a request to the application itself.

var content = WebUtil.ExecuteWebPage("http://localhost/page/detail?id={88A1AA95-633D-4B0E-AAC7-BA0610F0V091}")

It's working, but I am asking myself if there is a better way to resolve the rendered page html. I do not like the webrequest to the application itself. Does anyone have a better solution?

Thanks in advance, Jordy

0

There are 0 answers