Αυτός ο ιστότοπος θα έχει περιορισμένη λειτουργικότητα, όσο εκτελούμε εργασίες συντήρησης για να βελτιώσουμε την εμπειρία σας. Αν ένα άρθρο δεν επιλύει το ζήτημά σας και θέλετε να κάνετε μια ερώτηση, η κοινότητα υποστήριξής μας είναι έτοιμη να σας βοηθήσει στο Twitter (@FirefoxSupport) και στο Reddit (/r/firefox).

Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Μάθετε περισσότερα

Firefox removes href attribute if the link doesn't start with htttp://

  • 2 απαντήσεις
  • 3 έχουν αυτό το πρόβλημα
  • 13 προβολές
  • Τελευταία απάντηση από user1364126

more options

When pasting a link, which has an href without http:// (ex: <a href="zotero://open-pdf/0_123456" target="_blank">Open PDF</a>), in the HTML mode (not the source code mode) of an HTML editor, Firefox removes the href attributes. So I end up with this source code: <a target="_blank">Open PDF</a>

So how can I paste a link in an HTML editor in Firefox when its href doesn't contain an http://?

When I start Firefox in Safe Mode, then the `href="zotero://open-pdf/0_123456"` isn't removed

More background: I am creating this link with a python script based on HtmlClipboard

I already try saving a user.js in C:\Users\<Windows login/user name>\AppData\Roaming\Mozilla\Firefox\Profiles\<profile folder> with the code below but without success: user_pref("capability.policy.default.checkloaduri.enabled", "allAccess"); user_pref("capability.policy.policynames", "localfilelinks"); user_pref("capability.policy.localfilelinks.sites", "zotero://"); user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess"); user_pref("capability.policy.maonoscript.javascript.enabled", "allAccess");


Windows 7, Firefox 50.0,

When pasting a link, which has an href without http:// (ex: <a href="zotero://open-pdf/0_123456" target="_blank">Open PDF</a>), in the HTML mode (not the source code mode) of an HTML editor, Firefox removes the href attributes. So I end up with this source code: <a target="_blank">Open PDF</a> So how can I paste a link in an HTML editor in Firefox when its href doesn't contain an http://? When I start Firefox in Safe Mode, then the `href="zotero://open-pdf/0_123456"` isn't removed More background: I am creating this link with a python script based on HtmlClipboard I already try saving a user.js in C:\Users\<Windows login/user name>\AppData\Roaming\Mozilla\Firefox\Profiles\<profile folder> with the code below but without success: user_pref("capability.policy.default.checkloaduri.enabled", "allAccess"); user_pref("capability.policy.policynames", "localfilelinks"); user_pref("capability.policy.localfilelinks.sites", "zotero://"); user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess"); user_pref("capability.policy.maonoscript.javascript.enabled", "allAccess"); Windows 7, Firefox 50.0,

Τροποποιήθηκε στις από το χρήστη user1364126

Όλες οι απαντήσεις (2)

more options

EnoraNedelec said

When I start Firefox in Safe Mode, then the `href="zotero://open-pdf/0_123456"` isn't removed

Thank you for testing that. Let's focus in on your extensions more closely. Do any of your extensions potentially "clean" input into website forms or monitor the zotero:// protocol?? You can view, disable, and often configure or remove extensions on the Add-ons page. Either:

  • Ctrl+Shift+a (Mac: Command+Shift+a)
  • "3-bar" menu button (or Tools menu) > Add-ons

In the left column, click Extensions. Then cast a critical eye over the list on the right side. All extensions are optional. If in doubt, disable.

Often a link will appear above at least one disabled extension to restart Firefox. You can complete your work on the tab and click one of the links as the last step.

Any improvement?

more options

Thanks for this! You directed me to the right direction as the problem is caused by one of my extension. The funny thing is that I can't disable the extension causing the problem because it's the one I need to paste my link into! So the problem is not yet solved but at least I know where to focus. !

Τροποποιήθηκε στις από το χρήστη user1364126