Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Active/Inactive Group Landing Pages

To ensure that group landing pages are hidden both from Google search results and the HungryHub website, the following steps and features should be implemented:

Toggle Behavior

Toggle button to activate/deactivate the group landing page (like on homepage setting).

  • Flow : Restaurant → Restaurant Group Landing Page
  • Add Status column to provide the toggle button
  • Options :
    • Active
    • Inactive
  • Default Value: "Active"

  • The dropdown menu on Create/Edit group landing page for "Page Visibility" will have 2 options:
    • Active (Default): The page is always visible.
    • Inactive: The page is always hidden.
  • Default Value: "Active" Note : Inactive page only can be accessed by hungry hub email (?) → security purposes

Backend Logic

The backend logic should handle visibility and active date conditions based on the dropdown selection:

  • When Dropdown = Active:
    • Ignore Start Date and End Date values (even if they exist in the database).
    • Mark the page as visible on HungryHub and Google.
    • Include the page in internal links and XML sitemaps.
  • When Dropdown = Inactive:
    • Ignore Start Date and End Date values.
    • Mark the page as hidden from HungryHub and Google.
    • Apply a noindex meta tag.
    • Exclude the page from internal links and XML sitemaps.
    • Show Page is not available when non permitted user forces to access

Example Workflow

  1. Admin selects Active in the dropdown:
    • The page becomes visible immediately.
  2. Admin selects Inactive in the dropdown:
    • The page becomes hidden immediately.

Benefits

  • Ensures expired content does not appear in search results or on the HungryHub website, improving user experience and SEO performance.
  • Provides flexibility for admins to activate/inactivate the page

Design File : https://www.figma.com/design/Ji8cN1UVYcYSVGfEA2hU4x/Group-Landing-Page-Enhancement?node-id=2250-2686&t=uMXx9DJgffKNyFPL-1