Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing file extensions from URL #2

Closed
coltoutram opened this issue Apr 2, 2019 · 1 comment
Closed

Removing file extensions from URL #2

coltoutram opened this issue Apr 2, 2019 · 1 comment

Comments

@coltoutram
Copy link

coltoutram commented Apr 2, 2019

Is there a way to remove the file extensions from the URL? I use a rewrite rule on my webserver to remove them. It doesn't rename the file but just means you can access the links without the .png at the end.

Example: test.com/test.png = test.com/test

Xenthys added a commit that referenced this issue Apr 2, 2019
This small update allows users to remove the file extension from
the resulting URL, as requested. This is useful for instances using
a rewrite rule in order to automatically find the corresponsing file.

Be careful, as the filename generator only checks against existing
files of the same extension. It is therefore possible to have two files
with the exact same name, as long as they have a different extension.

Version bumped to 2.3.0
Xenthys added a commit that referenced this issue Apr 2, 2019
This small update allows users to remove the file extension from
the resulting URL, as requested. This is useful for instances using
a rewrite rule in order to automatically find the corresponding file.

Be careful, as the filename generator only checks against existing
files of the same extension. It is therefore possible to have two files
with the exact same name, as long as they have a different extension.

Version bumped to 2.3.0
@Xenthys
Copy link
Owner

Xenthys commented Apr 2, 2019

Implemented, you can now use the URL_STRIP_EXTENSION constant for that purpose.

@Xenthys Xenthys closed this as completed Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants