I was looking in neos.io-Packages-Search, in Packagist and with Google. Only found ««neos/redirecthandler-neosadapter» or outdated stuff and all for “old URL” that will redirect to the new page…
###Target:
Nesting in Neos – This should still usable for menu-structure:
Rivers.com/Rivers/Germany/South/Rhein
SEO-friendly:
Rivers.com/Rhein.html
```
###Tried:
Tried with «neos/redirecthandler-neosadapter» (+ neos/redirecthandler-databasestorage).
But there are no additional fields in Page-Inspector. Most likely because the plugin is defined for a different target: «enables ***automatic*** redirects», or I did misunderstood something.
###Working solution:
Of corse, I can define PageNodes in root-level, from type «Shortcut» and redirect to «Select Target» "/Rivers/Germany/South/Rhein". This is working, but mess up the Page-tree with lot of non real existing pages.
###Question:
- Is there a Plugin for this particular need: «enables ***definable*** urls-redirects to current page»?
- Is there a hidden or "to enable" solution in the neos/redirecthandler-Plugin?
- Have I overlooked some neos-build-in possibilities for seo-friendly url's?
I’m afraid until we implement configurable routes, there is no real “best” practice:
Here is a Gist what I tried at first:
In the end I even used AOP to interfere with `\TYPO3\Neos\Routing\FrontendNodeRoutePartHandler`` which is VERY flaky and it could break even after minor release upgrades.
So if you think that this does not sound like a recommendation, it’s officially not
Heres a different approach, but not freely configurable for editors since the configuration is happening im YAML:
@gerhard_boden thanks for information, the top view and your hints.
###Shortcut is a bad idea
Unfortunately my «simple approach» with Type «Shortcut» for shorten-seo-friendly-url is a really bad solution. Internal it is solved with a «303 – See other» Search-Engine not love them.
###AOP is?
1 Question about – what means «AOP» to interfere withFrontendNodeRoutePartHandler: Is it Aspect Oriented Programming?
If yes, I guess «your interfere» will not be beginner-friendly .Will choose your hint with OffRoad.
###PackageFactory.OffRoad @wbehncke the package «PackageFactory.OffRoad» is not listed in Packagist nor in neos.io/Packages.
I. Is the installation process by hand (copy to Application/Plugins-Folder). Would like to try in 2.3.x.
Would have to use also in 3.0.x.
II. @wbehncke: Do you guess, with find and replace the use TYPO3\Flow\Annotations as Flow and all the other Namespace-Stuff, it should work also in 3.0.x? Or is in 3.0.x some decisive changes in Neos, so the replaced Code could not work with?
Yes, AOP stands for Aspect Oriented Programming. But it’s not considered best pratice to just go ahead and override core methods, especially if they are not markes @api, because they could change at any time and break your application.