Skip to content

When viewing a graph, Edit Graph Template link may open wrong url #5236

@jlrcontegix

Description

@jlrcontegix

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:

  1. Navigate to instance's /graph_view.php

  2. Click on "Edit Graph Template" next to a graph, or hover over link and view URL.

  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourconfirmedBug is confirm by dev teamresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions