Skip to main content

Using Homepage as Community URL Causes Customizer and Course Routing Issues

I’m setting the homepage as the FluentCommunity portal by using:

define('FLUENT_COMMUNITY_PORTAL_SLUG', '');

This works in terms of routing, but it introduces a couple of problems:


1. Customizer Becomes Inaccessible

When the homepage is used as the community URL, the FluentCommunity customizer no longer loads. This means I can’t access the customizer to change FluentCommunity colors or other visual settings.


2. Disabled Modules Still Claim URLs (Courses)

If the Course module is disabled and the homepage is set as the community URL:

  • domain.com/courses correctly maps to FluentCommunity courses instead of
    domain.com/portal/courses (which is great).
  • However, when the Course module is disabled, FluentCommunity still tries to load the /courses route.

This causes conflicts when using TutorLMS or another LMS, effectively making /courses unusable.

To fully disable the courses route, I currently have to add this workaround:

add_filter('fluent_community/app_route_paths', function ($paths) {
    return array_diff($paths, ['courses', 'course']);
});

J V

As for the first issue you mention, I cannot confirm. i have the community in the root and can customize just fine.

Justice Akorede

J VΒ when you set root as community, did you set any page as homepage in WordPress static homepage, because when I think that's where the conflict is.

J V

Justice AkoredeΒ Oops I stand corrected, You are right. It is broken, it just wasn't before. Instead of FC customize like before I end up going into WP customize. Damn.

lesnocodeurs

Shahjahan JewelΒ important

Raiyan Marzan

Justice AkoredeΒ The customizer issue is fixed on dev. We will investigate the courses route. Thank you.

Bryan William

Just delete the static home page on your WordPress, the issue will disappear...

Raiyan Marzan

Bryan WilliamΒ Actually the issue is fixed in the latest version.

Justice Akorede

Raiyan MarzanΒ including the course route?

Raiyan Marzan

Justice AkoredeΒ Regarding courses, we intentionally keep the route even after disabling. So users can re-enable it from there. For anyone looking to exclude the course route entirely, the snippet you provided is perfect.