At the moment only a home page called home
will be redirected to the site URL when accessed directly (i. e. /home
). I think it would make more sense to redirect any page set as home page in the config, not only the default.
Or actually not sure if it should return an error … it’s not a page that should be accessible by its ID anyways.
@silllli Not sure I can follow you. Using the starterkit, I add 'home' => 'notes'
as config option. Now I get to see the notes
page by default as home page when I navigate to my main URL (e.g. starterkit.test/). I also get redirected to starterkit.test/ when I try to access starterkit.test/notes.
You are very right. The behavior I encountered is caused by the code snippet provided here in the guide.
One probably needs to check for home pages there and prevent returning them. I will adjust my route accordingly. Thank you for having a look at this.