-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
When viewing a graph, Edit Graph Template link may open wrong url #5236
Comments
This appears to be more of a configuration issue on your part. |
The default $url_path should be '/cacti/' |
That's the default, but why give the option if you can't change it? We do not want to deploy Cacti at /cacti/ and never have. |
You can change it in |
Perhaps I was not clear enough, I have $url_path defined in config.php as '/'. Only the Edit Graph Template link next to graphs renders incorrectly. |
On an instance where /cacti/ is used there is an extra slash rendered in the Edit Graph Template link: https://some.url.tld/cacti//graph_templates.php?action=template_edit&id=100 |
Can you show a screen shot of where this link it highlighting the screen shot so that I know specifically where you are experiencing the bad link? |
Cool, that helps. It's the slash at the end of the |
Resolved in the soon to be merged #5238 |
All ported to 1.3.x now. |
Describe the bug
In graph views where the "Edit Graph Template" button/link is displayed to the right of the graph, the link points to https://graph_templates.php/?action=template_edit&id=XX
All other links render properly.
To Reproduce
Steps to reproduce the behavior:
Navigate to instance's /graph_view.php
Click on "Edit Graph Template" next to a graph, or hover over link and view URL.
Link renders without base_url value leading to an error from the browser.
Expected behavior
The link should render with the base_url like other links.
Desktop (please complete the following information)
OS: MacOS Ventura
Browser Chrome
Version 109
Additional context
The only difference from a typical install is we are not using /cacti/ as the url_path, but instead /. I have tinkered with the Server Base URL value in Settings, by completely removing it, trying just the FQDN, and also https://FQDN, but no change in link rendering.
Cacti Version: 1.2.23
PHP 8.2.3
CentOS 7
The text was updated successfully, but these errors were encountered: