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 broken link to format specification on import page. #1455

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

dyung
Copy link
Contributor

@dyung dyung commented Nov 27, 2023

I noticed that trying to click on the "format specification" link on the import page did not work, and this is my attempt to fix it. Note that I have nearly 0 experience with PHP and only slightly more with javascript, but I think this should work. (I also unfortunately did not know how to test this).

Looking at the generated HTML page, you can see the link appears to be pretty broken:

See <a href="#help" onClick="javascript:window.open(" help csv.php", "CSV", "width="500," height="400,scrollbars=yes&quot;)&quot;">format specification</a>

My fix is based on similar code in html/settings.php which does something similar and does seem to work. Namely I had to change most of the double quotes to single quotes and escape the double quotes used for arguments to window.open().

I'm cautiously optimistic that this would fix the issue here.

@reedy reedy merged commit 9a4f574 into jpatokal:master Jan 3, 2024
@dyung dyung deleted the dyung/master/format-fix branch January 6, 2024 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants