-
Notifications
You must be signed in to change notification settings - Fork 297
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
Component "link" takes the absolute address of a page, which does not work with remote accesses #2597
Comments
Hi @fabiodurao, The situation is different from the configuration side, it's about portability of configuration between different servers (import/export), here we can see the advantages of relative addresses. You need to create an issue with this content, or modify it. It's best to write in, instead of creating an issue right away: Regards, |
We can discuss the matter further, but I believe that in this case there is no need and maybe I was not clear in the description of the problem. Scenario:
If during the configuration of the link component the url is kept as "http://localhost:8080/Scada-LTS/views.shtm?viewId=2", when the PC accesses the application using the address 192.168.1.100:8080/Scada -LTS and click on the link, the PC browser will look for a page inside his computer (localhost) and will not open the desired address, result, error 404. If the component's url is changed to "views.shtm?viewId=2", when the PC accesses the application and clicks on the link, its browser will automatically fill in the application address and complete it with the link address 192.168.1.100: 8080/Scada-LTS/views.shtm?viewId=2. Please test and let me know if you have a different result. |
Hi @fabiodurao, Again, this is a question of configuration portability, here from localhost, to another server. If as a client you connect to an application hosted on that server and set up links there, you get absolute links to that server, then as long as the client machine has access to that application on that server it must work. It doesn't matter if the link is relative or absolute. There is also a situation where you configure it directly from the server, then you could get localhost there, the solution here is not to configure the application from the server, but from the client's computer, most clients use the application this way and have not reported this problem. So this is unusual usage. Relative addresses, on the other hand, would be helpful, but in the problem of configuration portability between servers, i.e. by configuring links on one server, they would work on another, you could import this configuration from this other server and we could deal with it, because it is important. I created an issue for this problem: Everything that has been planned for version 2.7.5.4 is done, so we can add it to this version. Regards, |
This topic can be closed, setting relative addresses will also solve the problem of configuring the application directly on the server. |
Describe the bug
Accessing the links does not work when accessing from computers other than the server, because the link shows the absolute value of the link (http://localhost:8080/Scada-LTS/views.shtm?viewId=2).
To Play
Steps to reproduce the behavior:
Expected behavior
It was expected that after saving the screen, when clicking on the link, the page would lead to the link, which only happened if we were accessing it from the server.
Screenshots
![Captura de tela 2023-06-30 170254](https://private-user-images.githubusercontent.com/38673539/250190180-ca76dfe2-25cb-4cd9-afda-5b5499011f61.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NDkxMTcsIm5iZiI6MTczOTQ0ODgxNywicGF0aCI6Ii8zODY3MzUzOS8yNTAxOTAxODAtY2E3NmRmZTItMjVjYi00Y2Q5LWFmZGEtNWI1NDk5MDExZjYxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDEyMTMzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRiNjk5MDdmZWM4NDE5M2ZiZTJkYzJmZTFiNDFiNjIyM2RiOWRlYjA1NmJmODViYjkwMmYxMDljNWMwMDI0YTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.tmXAxeQF6Ufd3pFZ1WzzM1Vy1DqxJRVJOSd0_B4f4UY)
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: