Closed PieterL75 closed 1 year ago
0.21.0
hand deployed python
3.9
suzieq-gui
deploy suzieq-gui on a relative path
the link opens with a relative url to the fqdn. https://hostname/suzieq/?variables
the link is rewritten to https://hostname/?variables
This is done in the get_base_url(): https://github.com/netenglabs/suzieq/blob/develop/suzieq/gui/stlit/guiutils.py#L112
The logic there is not quite ok, it should just return "?variable=value", and let the browser handle the relative path
Suzieq version
0.21.0
Install Type
hand deployed python
Python version
3.9
Impacted component
suzieq-gui
Steps to Reproduce
deploy suzieq-gui on a relative path
Expected Behavior
the link opens with a relative url to the fqdn. https://hostname/suzieq/?variables
Observed Behavior
the link is rewritten to https://hostname/?variables
Screenshots
Additional Context
This is done in the get_base_url(): https://github.com/netenglabs/suzieq/blob/develop/suzieq/gui/stlit/guiutils.py#L112
The logic there is not quite ok, it should just return "?variable=value", and let the browser handle the relative path