Skip to content

URL path aliases for long paths with infinite depth parents (and breadcrumbs) #327

Description

@finnlewis

URL alias length by default is 100 characters.

Maximum is 255 characters.

Allowing service landing pages to reference other service landing pages as parents allows infinite depth.

URL Path Aliases with break after 100 characters.

Breadcrumb will break too.

So this is a IA problem.

For example: https://localgov.ddev.site/adult-health-and-social-care/second-level/third/fourth-service-land-page/fifth-level-service-0

@andybroomfield : could we truncate from the start of the path alias, rather than the end? This would allow the page title to still be present in the path alias!

Here's where we work some magic: https://github.com/localgovdrupal/localgov_services/blob/2.x/modules/localgov_services_navigation/localgov_services_navigation.module#L69

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions