Telegram_2022-12-17T10

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2022 > 12 > 17 >

Telegram_2022-12-17T10

Telegram link

 

2022-12-17T10:36:43

 

When a Search Engine is trying to index your app, the type: bold ServerController event OnBrowserCheck is triggered and you need to \pretend\ your app is a indexable content. The easiest way is to terminate and redirect to a web page that is indexable. Don´t forget to include type: bold IW.Browser.SearchEngine on your uses clauses:

 

type: pre procedure TIWServerController.IWServerControllerBaseBrowserCheck(aSession: TIWApplication; var rBrowser: TBrowser);

 

begin

 

if rBrowser is TSearchEngine then

 

begin

 

aSession.TerminateAndRedirect(YOURPAGE);

 

end;

 

end; language:

 


 

Telegram link

 

2022-12-17T10:39:00

 

you can also use type: bold aSession.Response.* and elaborate your \indexable resource\ a bit more. You can build a \page\ on the fly, using the Response methods and add the content you want to be indexed.