-
-
Notifications
You must be signed in to change notification settings - Fork 87
Release v2.2.1 is creating a lot of server entries #167
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
Comments
Shlink-web-client has two features that seem to be conflicting: On the one hand, there's a feature which lets you serve a default list of servers under the On the other hand, since the app has a client-side HTML5 router, it makes sure paths the server does not know, fall back to the However, there are some known extensions which are still handled as a 404 when not found. Mostly known static file extensions, like The fix is easy, the However, I'm confused, because regardless the fact that the issue seems pretty clear, I'm not being able to reproduce it. Can you check if Which one of these do you see? |
I'm still not sure how did you get to that situation, but I have just pushed a fix which should cover your case. It adds the It will cover those cases in which this file includes malformed or invalid content, for example, but also the case in which, for some reason, it falls back to the index.html. It is now building. I will let you know when it's available as v2.2.2 |
@ssrini the new version is already available if you want to grab it, and it has been deployed in app.shlink.io |
Thanks @acelaya You are right .. the problem is not there after I cleared out the browser cache completely. I am using my own install behind Nginx. I think initially the config was not right and must have been returning index.html instead of a 404. I checked now and its correctly returning a 404 and after cache clear there is no issue. The hin of course was it was working in incognito :) BTW: A note on CORS to use this app with the shlink backend in documentation will help. I had to rejig nginx config quite a bit before I got it running! Thanks for the quick improvement |
Awesome. I'm glad to know it works now :) Regarding CORS, what problems did you face and how did you solve them? In theory it should work pretty much out of the box. Maybe you are facing a use case I didn't consider. |
Nothing. I had missed the CORS requirement completely since docs dont seem to mention it (or I might have missed it). Also sample configs for nginx etc might help users. Nothing else. |
It is actually documented https://shlink.io/api-docs/ :) Maybe it should be mentioned in some README file too. It's hard to keep the website and README files in sync. Regarding nginx config, I guess you mean for the web client? For the server there's examples too, both in the website and the readme. |
Actually when I tried connecting to my API from app.shlink.io didn't work. I then had to add CORS config byvtrial and error to nginx for my API server. Then it worked. Is the API supposed to send CORS automatically? |
Yes, it is automatically handled by this https://github.com/shlinkio/shlink/blob/master/module/Rest/src/Middleware/CrossDomainMiddleware.php |
When the app is loaded, a huge number of servers are being created automatically in the localstorage. Not sure why this is so. Even if localstorage is cleared and reloaded the entries are created again.
Note: This does not happen in incognito mode
The text was updated successfully, but these errors were encountered: