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
Where the "web" subfolder contains some basic "index.html" file.
In a browser, browse to: "localhost:3000" and the website is shown correctly.
Now browse to "localhost:3000/?test" and the following error is shown:
"PrimitiveFailed: primitive #basicNew: in Array class failed"
.
Expected behavior:
The website is shown correctly
and the "?test" argument can be retrieved with JavaScript: Windows.location.search.
The text was updated successfully, but these errors were encountered:
Checking further:
The error only occurs when the query is at the root level.
For example "localhost:3000/index.html?test" does not give an error and shows the website.
That will be the workaround.. :)
FunctionPoint
changed the title
Static file server gives error on URL with query
Static file server gives error on URL with query at website root
Sep 18, 2024
Start with a fresh Pharo 13 image.
In a Playground window evaluate:
Where the "web" subfolder contains some basic "index.html" file.
In a browser, browse to: "localhost:3000" and the website is shown correctly.
Now browse to "localhost:3000/?test" and the following error is shown:
"PrimitiveFailed: primitive #basicNew: in Array class failed"
.
Expected behavior:
The website is shown correctly
and the "?test" argument can be retrieved with JavaScript: Windows.location.search.
The text was updated successfully, but these errors were encountered: