teragrep / ajs_01

User interface for Teragrep
Apache License 2.0
0 stars 0 forks source link

login modal redirects to frontpage #131

Open kortemik opened 1 year ago

kortemik commented 1 year ago

ID <203> Reporter <@kortemik>

login modal redirects to frontpage even it should keep the accessed page

as logged out user, i want to access following page http://iris-tg2.qa.teragrep.org:8080/#/notebook/2GN24FPYR

ui gives redirect to http://iris-tg2.qa.teragrep.org:8080/#/?ref=%2Fnotebook%2F2GN24FPYR then it redicts to http://iris-tg2.qa.teragrep.org:8080/#/?ref=%2F

after logging in i am the front page

i expected to be on the notebook, even if permission denied would be displayed

kortemik commented 1 year ago

User <@kortemik> Date <[2022-05-06T05:42:45Z]>

this is related to alerts feature as well as they will link to paragraph directly:

such as http://iris-tg2.qa.teragrep.org:8080/#/notebook/2H32B5N2Y/paragraph/paragraph_1650526436823_648944055

kortemik commented 1 year ago

User <@BVVLD> Date <[2022-06-02T13:00:19Z]>

URL.webm

kortemik commented 1 year ago

User <@StrongestNumber9> Date <[2022-06-02T13:31:40Z]>

You can fix wrong redirection by making the following urls are both first and anon on shiro.ini urls section:

[urls]
/api/version = anon
/api/cluster/address = anon
# rest of the settings

After that tweak it doesn't show login form so not yet fixed issue