miqrogroove / family-tree-home

Module that changes the webtrees home page to a tree page.
GNU General Public License v3.0
3 stars 0 forks source link

Module Sometimes Doesn't Work When rewrite_urls = 0 #1

Closed hartenthaler closed 2 years ago

hartenthaler commented 2 years ago

I just installed your module on my test server. There are four trees. The module is visible in the control panel. No error.

No function. When I log out and log in, I see "MyPage", not the page of any tree.

miqrogroove commented 2 years ago

I checked some of my other code hacks and couldn't reproduce that issue with my one tree config. I will try adding a 2nd tree and see what happens with it.

miqrogroove commented 2 years ago

It still works here on my server with 2 trees. So I need more info. Could you describe your webtrees version, Family Tree Home Page version, do you have rewrite_urls in the config file, and are there any special privacy settings, such as guests can't see any trees? Any other custom modules? Also, if you could tell me anything about the address under the Sign In link, which sometimes ends with %2Fmy-page depending on the current page viewed.

One theory I have is the lack of rewrite_urls, as seen on the demo site, causes the Sign In URL to end with %252Fmy-page instead of %2Fmy-page

If you can confirm your test server is doing the same, then that might be the bug in my module.

miqrogroove commented 2 years ago

I was able to reproduce that bug. Here are the criteria:

Any other combination of settings or inputs would not trigger this bug. It was tricky!

hartenthaler commented 2 years ago

Sorry for the late answer. I was busy, today. rewrite_urls was not set, so I assume it is used as "0". There is a tree visible to guests. And I signed in from the default tree home page. Now I will test your new version.

hartenthaler commented 2 years ago

Success! Now it works like expected. Great!