Skip to content

Broken phpfunction links - missing slash in URL #21621

@dkonate

Description

@dkonate

Description

All links using the :phpfunction: role in the documentation are broken due to a missing slash in the generated URL.

Current behavior

Links like :phpfunction:readlink`` generate URLs pointing to:

https://www.php.netmanual/en/function.readlink.php

This results in a 404 error.

Expected behavior

The URL should be:

https://www.php.net/manual/en/function.readlink.php

(Note the slash between .net and manual)

Example

I noticed this issue in the Filesystem component documentation:
https://symfony.com/doc/current/components/filesystem.html

The text mentions:

unlike PHP's :phpfunction:readlink function

But the link is broken.

Impact

This affects all references to PHP functions throughout the Symfony documentation.

Suggested fix

The configuration for the phpfunction role needs to be updated to include the missing slash in the base URL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions