Skip to content

Add a trailing slash to feed URLs if trailingSlash is enabled #9829

Closed
@ilg-ul

Description

@ilg-ul

Have you read the Contributing Guidelines on issues?

Description

Add the trailing slash to URLs generated in the feed files.

Has this been requested on Canny?

No response

Motivation

The trailingSlash configuration is available to customise the presence/absence of a trailing slash at the end of URLs; unfortunately this setting does not apply to the links generated in the feed files, and tools like Algolia that use the feed files may behave unusual.

API design

Call the applyTrailingSlash function conditionally to adjust the URLs generated in the feed files.

Have you tried building it?

The functionality is implemented in cronica-it@35fef96.

Self-service

  • I'd be willing to contribute this feature to Docusaurus myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureThis is not a bug or issue with Docusausus, per se. It is a feature request for the future.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions