Martijn,
I have used a Javascript action to get the href and, based on the value, redirect to the page I want the user to go to. Some details:
Here is my default home page:
The Microflow Timer calls this nanoflow which looks for a specific URL (custom domain) that was used to navigate to the app:
The Javascript action code is as follows:
We used this to show a different page to users who arrived via a specific custom domain.
I realize this is not exactly what you are trying to accomplish, but thought it might give you a starting point.
Hope that helps,
Mike
Mike, You Rock! This was de push in right direction I needed! I added a JavaScript action to my Page with the code:
»
export async function JavaScript_Read_Request_UserAgent() {
// BEGIN USER CODE
var userAgent = window.navigator.userAgent;
return userAgent;
// END USER CODE
}
«
This gives me exactly the information I need to check if the visitor is a search bot and then redirect it to the HTML files.
Thank you for your help and have a nice day!
Best,
Martijn