Currently, I’m looking for a rock solid solution to have a OnePager/SPA (SinglePageApplication) with perfect deep linking (without any hashtags on HTML5-Browsers) and SEO.
Maybe-Solution: Using Kirby Routes:
Hello I’m a SearchEngine-Bot:
With that maybe-solution in mind: If a Search-Engine-Bot (Bot) came along - it will first crawl the homepage and will find the references to the MainPages. It will follow the first link and - BOOM - it will find the homepage at this MainPage-URL again. At this point the Bot is lost in infinity and no content will be ever indexed again.
There are Bots and Humans:
That is the crux. Now there are new solutions to work that out. Here are some of them i got in mind:
- MainPages and ChildPages will be all using the default-template, if there is no specific template available. Only having the default-template available, it is possible to dynamically write the correct content using PHP in the default-template, by using snippets instead templates for pages, should do the trick. The bot will be fed up with the URL-specific PageContent and a user will experience a great SPA, which always will be initialized in the browser within the default-template.
What do you think? I would like to hear your opinion and solutions.