{"id":18759273,"url":"https://github.com/mariussoutier/play-trailing-slash","last_synced_at":"2025-12-02T20:30:13.057Z","repository":{"id":139856911,"uuid":"9073957","full_name":"mariussoutier/play-trailing-slash","owner":"mariussoutier","description":"Automatically 401 redirect routes with a trailing slash to a route without a trailing slash","archived":false,"fork":false,"pushed_at":"2013-03-28T09:53:45.000Z","size":137,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-29T03:53:58.572Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mariussoutier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-28T09:34:27.000Z","updated_at":"2016-06-17T04:21:56.000Z","dependencies_parsed_at":"2023-03-13T10:45:14.832Z","dependency_job_id":null,"html_url":"https://github.com/mariussoutier/play-trailing-slash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariussoutier%2Fplay-trailing-slash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariussoutier%2Fplay-trailing-slash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariussoutier%2Fplay-trailing-slash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariussoutier%2Fplay-trailing-slash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mariussoutier","download_url":"https://codeload.github.com/mariussoutier/play-trailing-slash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239652954,"owners_count":19675004,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T17:51:05.937Z","updated_at":"2025-12-02T20:30:13.006Z","avatar_url":"https://github.com/mariussoutier.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"Play Trailing Slash\n===================\n\nWhat is this?\n-------------\n\nThis is a Play Framework 2 module that generates a 401 Moved Permanently redirect for request\npaths that end with a slash, redirecting to a path without a trailing slash.\n\n\nWhy is this useful?\n-------------------\n\nConsider a simple URL such as http://www.example.com/login that displays a login page. If the user\nenters http://www.example.com/login/ by accident, Play will generate a 404 result. If you define both\nroutes, Google will treat this as duplicate content. Play's default router only offers a 302 redirect\nwhich doesn't solve the duplicate content problem.\n\n\nHow do you use it?\n------------------\n\nBuild.scala:\n\n    val trailingSlash = RootProject(uri(\"git://github.com/mariussoutier/play-trailing-slash.git\"))\n    val main = play.Project(...).dependsOn(trailingSlash)\n\nScala:\n\n    import com.mariussoutier.play._\n    object Global extends GlobalSettings with TrailingSlash\n\n\nJava:\n\n    import com.mariussoutier.play.*;\n    public class Global extends TrailingSlashSettings {\n    }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariussoutier%2Fplay-trailing-slash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmariussoutier%2Fplay-trailing-slash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariussoutier%2Fplay-trailing-slash/lists"}