Skip to content

Commit

Permalink
Merge pull request #369 from joomla/feature/wrk-broken-asset-download
Browse files Browse the repository at this point in the history
Workaround for trailing slashes bug for assets
  • Loading branch information
HLeithner authored Jan 25, 2025
2 parents b9898e5 + 8cc49a8 commit 9aeb329
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ steps:
commands:
- npm install
- npm run build
- mv webserver/.htaccess build

- name: deployment
image: joomlaprojects/docker-images:packager
Expand Down Expand Up @@ -47,6 +48,6 @@ steps:

---
kind: signature
hmac: 3d1303abd175ffda3aec141c6ea71d541f50f3c3e0752a68330fde5560386a58
hmac: ae910acaafbf7e06bea4e33c509dbabe08e1edaba7f175d91db4a880030c7cc4

...
5 changes: 5 additions & 0 deletions webserver/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
RewriteEngine On

# Workaround for trailing slashes bug https://github.com/facebook/docusaurus/issues/6282
RewriteCond %{REQUEST_URI} ^/assets/files/(.+)\.(\w+)/$
RewriteRule ^ /assets/files/%1.%2 [L,R=301]

0 comments on commit 9aeb329

Please sign in to comment.