Skip to content

Docs: route_to() logic #6223

@MGatner

Description

@MGatner

The User Guide has examples of using route_to() to return a URI path, which will fail in certain circumstances (e.g. subfolders). Docs should be updated to be clear that this returns a route, and if a URI is needed then it should be passed through site_url() (or just use url_to()).

See also: codeigniter4/shield#267 (comment)

Metadata

Metadata

Assignees

Labels

devdocumentationPull requests for documentation only

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions