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

Support fields reference in URL #8787

Closed
zephyros-dev opened this issue Nov 12, 2022 · 3 comments · Fixed by #8788
Closed

Support fields reference in URL #8787

zephyros-dev opened this issue Nov 12, 2022 · 3 comments · Fixed by #8788
Assignees

Comments

@zephyros-dev
Copy link

zephyros-dev commented Nov 12, 2022

Expected Behavior

  1. Create an entry with fields reference in the URL field of the entry. .e.g:
URL: https://subdomain.{REF:U@I:5dc735f8e1c1405q8c4e71e90b49ag06}

rendered to

URL: https://subdomain.example.com

The URL above is rendered in KeepassXC
2. When KeepassXC search for entry to be inserted in the site, it should be able to search for the site with the rendered URL

Current Behavior

Currently, KeepassXC cannot match the entries with field reference in URL

Possible Solution

Debug info

KeePassXC - 2.7.4
KeePassXC-Browser - 1.8.3.1
Operating system: Win64
Browser: Mozilla Firefox 106.0

@droidmonkey droidmonkey transferred this issue from keepassxreboot/keepassxc-browser Nov 12, 2022
@varjolintu
Copy link
Member

Related: #7380.

@varjolintu
Copy link
Member

@zephyros-dev FYI, the correct way to reference an URL is {REF:A@I:5dc735f8e1c1405q8c4e71e90b49ag06}. So A instead of U (username).

The fix to the original bug is done.

@zephyros-dev
Copy link
Author

zephyros-dev commented Nov 13, 2022

@zephyros-dev FYI, the correct way to reference an URL is {REF:A@I:5dc735f8e1c1405q8c4e71e90b49ag06}. So A instead of U (username).

The fix to the original bug is done.

Thank you for the prompt work. I used A instead of U fields since I intend on using the REF features like a key/value for arbitrary field rather than just for the URL, so A for public and P for private REF. This is a workaround since Keepass does not allow referencing values from arbitrary custom value field AFAIK

Referencing fields of other entries only works with standard fields, not with custom user strings

I thought that it would work regardless of which field is referenced from, but if URL rendering will only works when referenced from U field I think there should be a note for this in the User guide.

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

Successfully merging a pull request may close this issue.

3 participants