Skip to content

Add ability to remove .html extension from path #182

Open
@azat-io

Description

Hello! Thank you for awesome Astro plugin!

I'm using Netlify with Pretty URLs option.

image

I remove .html ext from URLs: /about.html -> /about.

When I use astro-shield package, this plugin creates _headers file with full URL:

/about.html
  content-security-policy: ...

For this reason, the CSP does not work on the page. Can we add the removeHtmlExtension option so that the plugin can be used with Pretty URLs?

Activity

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

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