Skip to content
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

Fix missing to-parameter in dashboard graph widget link #10600

merged 1 commit into from Sep 12, 2019


Copy link

commented Sep 12, 2019


Please note

Please read this information carefully. You can run ./scripts/pre-commit.php to check your code before submitting.


If you would like to test this pull request then please run: ./scripts/github-apply <pr_id>, i.e ./scripts/github-apply 5926
After you are done testing, you can remove the changes with ./scripts/github-remove. If there are schema changes, you can ask on discord how to revert.


If you add a generic-graph widget to a dashboard the image links to a bigger version of the graph (under https://librenms/graphs/). This link doesn't include a /to=${timestamp}/ parameter in the URL.
Updating the time range in the graph view uses submitCustomRange() from librenms.js to replace the from and to parameters in the URL using regular expressions. If there is no to parameter in the URL, it won't be added - so unless you click on one of the predefined time ranges first or add it yourself you can't change the to parameter.

It might be a better idea to rewrite the submitCustomRange() function, but as I don't know enough about javascript, I just added the to parameter in the generic-graph widget code.


This comment has been minimized.

Copy link

commented Sep 12, 2019

CLA assistant check
All committers have signed the CLA.

Copy link

left a comment


@PipoCanaja PipoCanaja merged commit 81e57c8 into librenms:master Sep 12, 2019
6 checks passed
6 checks passed
Inspection Summary
Node: analysis
Travis CI - Pull Request Build Passed
WIP Ready for review
codeclimate All good!
license/cla Contributor License Agreement is signed.

This comment has been minimized.

Copy link

commented Sep 30, 2019

This pull request has been mentioned on LibreNMS Community. There might be relevant details there:

@feuerrot feuerrot referenced this pull request Oct 18, 2019
1 of 1 task complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
4 participants
You can’t perform that action at this time.