-
-
Notifications
You must be signed in to change notification settings - Fork 365
Changing absolute path URL to relative path URL in deviceDetailsTools.php #1170
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
Changing absolute path URL to relative path URL in deviceDetailsTools.php #1170
Conversation
Change static route to relative route in URL for proper proxy operation
WalkthroughThe maintenance link in front/deviceDetailsTools.php changed from an absolute path (/maintenance.php#tab_Logging) to a relative path (maintenance.php#tab_Logging). No other markup or logic was modified. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Pre-merge checks (3 passed)✅ Passed checks (3 passed)
Poem
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. ✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
front/deviceDetailsTools.php (2)
201-203: Make it explicitly relative (optional).Using "./maintenance.php" makes intent unambiguous and resists unexpected tags.
Apply this minimal tweak if you like:
- <a onclick="setCache('activeMaintenanceTab', 'tab_Logging_id')" href="maintenance.php#tab_Logging"> + <a onclick="setCache('activeMaintenanceTab', 'tab_Logging_id')" href="./maintenance.php#tab_Logging">
18-19: Duplicate element IDs (non-blocking).IDs should be unique. The same ids are reused for buttons (internetinfo) and containers (wol_output) and also btnDeleteEvents appears twice. This can break getElementById/selectors.
Consider unique IDs or switch to classes for styling/hooks.
Also applies to: 42-43, 60-61, 63-64, 86-87, 106-107, 81-84, 101-104
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
front/deviceDetailsTools.php(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: docker_dev
🔇 Additional comments (2)
front/deviceDetailsTools.php (2)
201-203: Relative URL change improves reverse-proxy compatibility — LGTM.Switching from "/maintenance.php#tab_Logging" to "maintenance.php#tab_Logging" avoids escaping subpath prefixes during proxying. Looks good.
201-203: Confirmed: maintenance.php at front/maintenance.php; no root-absolute links found.front/deviceDetailsTools.php (≈lines 201–203) uses a relative href ("maintenance.php#tab_Logging"); repo scan found no href/src/action attributes starting with '/' and no tags.
…l-to-relative-path-url-in-deviceDetailsTools-php
Hi @jokob-sk,
Pull Request
Description
Changed the absolute path URL to relative path URL in deviceDetailsTools.php, this is a fix for issues with reverse proxy servers.
Changes
Update deviceDetailsTools.php (/front/deviceDetailsTools.php)
URLs were changed from absolute paths to relative paths
Test
Tested locally and works fine
Change static route to relative route in URL for proper proxy operation
Summary by CodeRabbit