You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refreshing any page resulted in a 404 Page not found, either manually or after running php core/console --generate and reloading (we have a gulp task that watches for any changes in patterns, runs that command, and reloads the browser).
We couldn't share links between the team, since they returned 404s as well.
We found that the cause was that Pattern Lab removes index.html from the URL, and our hosting environment doesn't load index.html by default.
Our fix is to not remove index.html. If accepted, it wouldn't cause problems for anybody else and it would help PL to not assume the servers are configured to serve index.html as the default file.
I am using Pattern Lab Node v5.16.2 on Mac, with Node v12..13.1, using a Vanilla Edition.
Expected Behavior
Be able to decide in whether my system redirects from /index.html? to /? (comparable to SPA) or not, as I might host it in an environment, which doesn't handle the default document of index.html correctly, like e.g. Gitlab Pages (it's in their backlog to support SPA properly, but it's resulting in a problem at the moment at least after a reload).
Actual Behavior
A URL containing the file index.html is always being redirected to the equal one with index.html being removed.
Steps to Reproduce
You need to reproduce this on an environment that doesn't handle the default file of index.html correctly in case of that no file is being provided at the URL. Most it works perfectly correctly on your localhost (http://localhost:3000/?p=all) and on our preview environment on Netlify.
The text was updated successfully, but these errors were encountered:
* refactor: providing the configurability for whether to remove index.html from the URL #1427
* docs(configuration): added entry for noIndexHtmlremoval
…#1428)
* refactor: providing the configurability for whether to remove index.html from the URL pattern-lab#1427
* docs(configuration): added entry for noIndexHtmlremoval
inspired by and adapted from pattern-lab/styleguidekit-assets-default#49
I am using Pattern Lab Node
v5.16.2
onMac
, with Nodev12..13.1
, using aVanilla
Edition.Expected Behavior
Be able to decide in whether my system redirects from /index.html? to /? (comparable to SPA) or not, as I might host it in an environment, which doesn't handle the default document of
index.html
correctly, like e.g. Gitlab Pages (it's in their backlog to support SPA properly, but it's resulting in a problem at the moment at least after a reload).Actual Behavior
A URL containing the file
index.html
is always being redirected to the equal one withindex.html
being removed.Steps to Reproduce
You need to reproduce this on an environment that doesn't handle the default file of
index.html
correctly in case of that no file is being provided at the URL. Most it works perfectly correctly on your localhost (http://localhost:3000/?p=all) and on our preview environment on Netlify.The text was updated successfully, but these errors were encountered: