-
-
Notifications
You must be signed in to change notification settings - Fork 259
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
trailing slash is truncated on links depending on the host name #777
Comments
Thank you for the detailed description! |
I see to have the same issue :) |
Pinning this now for extra attention. We'll investigate why this is happening... |
I have the exactly same issue on version 0.13.2. UPD: the only thing worked for me is to use address |
I am still running into this issue as well. |
This issue is still happening in v0.13.4 so I have been trying to track down the cause. From what I can tell the change is happening somewhere in the mantine library since the url that is being fed into the |
OK, the issue is coming from using the If you set it to use |
Hi @hskrtich , thanks for the investigation. As far as I know, next/link would be incorrect here anyway, as it should only be used for internal URLs to avoid reloading the entire page and to use the Next.js router instead. Do you want to contribute this fix with a pull request? Be advised, that the development branch has some undocumented steps that developers must take. @Tagaishi could you maybe document these in the developer guidelines in the documentation or create a markdown file with that information? If you don't have time, I'll do it myself tonight. |
Hey @manuel-rw , I can put up a PR if you like but while I am decent at debugging I am no js developer. So if this change just requires the one line change I can do that but if its more complicated then that I will be out of my depth. |
No worries. Thank you for letting is know though. I think it should only be this single line. |
Co-authored-by: Thomas Camlong <thomascamlong@gmail.com> Co-authored-by: Tagaishi <Tagaishi@hotmail.ch> Co-authored-by: Manuel <manuel.ruwe@bluewin.ch> Co-authored-by: Meier Lukas <meierschlumpf@gmail.com> Co-authored-by: Manuel <30572287+manuel-rw@users.noreply.github.com> Co-authored-by: Tobias Stadler <28538704+devtobi@users.noreply.github.com> Co-authored-by: Henry Skrtich <1214484+hskrtich@users.noreply.github.com> Co-authored-by: AuthorShin <a.saneie@yahoo.com> Co-authored-by: Diogo Valentim <diogovalentte10@gmail.com> Co-authored-by: Someone <10882916+InterN0te@users.noreply.github.com> Co-authored-by: Spillebulle <46653946+Spillebulle@users.noreply.github.com> Co-authored-by: Justijn Depover <justijndepover@gmail.com> Fix locale for calendar and clock (#1330) fix (#1375) close modal on click when opened (#1396) fix (#1401) fix: stop triming traling slashes (#1435) fixes #777 fix: trim media server url (#1438) Fix miscellaneous console errors (#1418) fixes (#1419) Fix tiptap url CVE (#1459) Fix allow guest issue (#1472) Fix the leading slash when adding container via docker (#1478)
Environment
k8s
Version
0.11.5
Describe the problem
Seems related to #635.
I'm running into an issue where trailing slashes get omitted from the configured URL's. For example, the service URL in the config is
http://service.com/health/
but gets rewritten tohttp://service.com/health
when rendering the HTML. This causes issues since the service is only registered behind one of the URLs.Here's the steps I took to reproduce:
http://10.0.0.200/pihole/admin/
10.0.0.200
Expected: app URL in rendered HTML is
http://10.0.0.200/pihole/admin/
Actual: app URL in rendered HTML is
http://10.0.0.200/pihole/admin
(missing backslash)Now here's where it gets interesting. If I modify
/etc/hosts/
to create a new name entry for10.0.0.200
(e.g.homelab-dev.com
) then the error doesn't happen.For example:
http://10.0.0.200/pihole/admin/
/etc/hosts
for10.0.0.200 homelab-dev.com
homelab-dev.com
(still same backend)http://10.0.0.200/pihole/admin/
(the correct behavior)My guess is that the app is using some URL formatting library that is giving inconsistent behavior when the
browserUrl.domain == appUrl.domain
.Logs
N/A -- the logs are not helpful b/c the error is most likely caused by something subtle
Context
Scenario A: Talk to the server using a domain that's the same as the app URLs
Scenario B: Talk to the server using a domain that's different from the app URLs
Please tick the boxes
The text was updated successfully, but these errors were encountered: