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: Roster path in Shift & Attendance workspace #2887

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

seclution
Copy link

Fix relative URL to work behind a proxy

Please provide enough information so that others can review your pull request:

Explain the details for making this change. What existing problem does the pull request solve?

Screenshots/GIFs

Fix relative URL to work behind a proxy
@seclution seclution requested a review from ruchamahabal as a code owner March 20, 2025 12:49
Copy link
Member

@ruchamahabal ruchamahabal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a before after screenshot/gif for showing the problem?

@seclution
Copy link
Author

I suspect the issue lies with the functions frappe.utils.generate_route or get_route. When operating behind a proxy, shortcut URLs that end with a trailing slash (/) are not correctly converted into fully qualified URLs. If the trailing slash is omitted, the URL is properly interpreted as a relative path.
Before:
ksnip_20250408-095259

Change:
ksnip_20250408-095301

After:
ksnip_20250408-095303

@ruchamahabal ruchamahabal changed the title Update shift_&_attendance.json fix: Roster path in Shift & Attendance workspace Apr 8, 2025
@@ -259,7 +259,7 @@
"doc_view": "List",
"label": "Roster",
"type": "URL",
"url": "/hr/roster/"
"url": "/hr/roster"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You will also have to update modified timestamp for this json document for it to get synced on migrating sites
Also requesting you to move description to the main PR description section from the comment

And for future contributions please follow semantic commits: https://www.conventionalcommits.org/en/v1.0.0/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants