SCADA-LTS / Scada-LTS

Scada-LTS is an Open Source, web-based, multi-platform solution for building your own SCADA (Supervisory Control and Data Acquisition) system.
GNU General Public License v2.0
700 stars 283 forks source link

Fixed 'Go to my default page' after change 'Home page' #2905

Open Limraj opened 1 month ago

Limraj commented 1 month ago

Description After going to the selected page and using the 'Make this my default page' function, which should set the currently open page in the 'Home page', i.e. overwrite the previously set one, then we use the 'Go to my default page' function, which redirects us to the old page home page instead of the current one. Only when the user logs in does the Home page update and the 'Go to my default page' function redirects to the correct page.

To Reproduce Steps to reproduce the behavior:

  1. Login as admin;
  2. Go to 'Data sources';
  3. Click on 'Make this my default page': image and click 'OK': image
  4. Logout and login as admin;
  5. Go to 'Reports' and repeat step 3.
  6. Go to 'Users' and click on 'Go to my default page': image then open 'Data Sources': http://localhost:8080/Scada-LTS/data_sources.shtm -> error, it should open the Reports page, not the Data Source list
  7. Repeat step 4 and step 6, then 'Go to my default page' is correct work, open Reports;

Spec: