LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 07-24-2020, 02:59 AM   #1
pstein
LQ Newbie
 
Registered: Jan 2009
Posts: 14

Rep: Reputation: 0
How to make bookmarks files (!) clickable in browser?


I created some bookmark files by dragging them from Firefox to a directory. Such a bookmark file has for example for linuxquestions.org
the following content:

[InternetShortcut]
URL=https://www.linuxquestions.org/questions/newthread.php?do=newthread&f=8
IDList=
HotKey=0
IconIndex=0


When I double click it the corresponding webpage is loaded in browser.
Fine.

Now I copy this bookmark file to a webserver directory and navigate to this folder in the (Firefox) browser.

When I click now on this file on the web page the browser is NOT redirected to the given webpage but the content is display ed instead.

Why?

Is this a bookmark file, a webserver or a browser issue?

How do I make one bookmark most easily clickable?

I want to avoid writing a *.html page and embed the bookmark as clickable link.

Thank you
Peter
 
Old 07-24-2020, 04:59 AM   #2
Turbocapitalist
Senior Member
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 4,907
Blog Entries: 3

Rep: Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456
Quote:
Originally Posted by pstein View Post
Is this a bookmark file, a webserver or a browser issue?

How do I make one bookmark most easily clickable?

I want to avoid writing a *.html page and embed the bookmark as clickable link.
It's not a bookmark file but a desktop entry file or something like that. As such, your browser will treat it for what it is: plain text. Thus you get an editor when you download it from your web server. If you want the document served by the web server as HTML, then it should be HTML or XHTML.

Generally the hierarchical list of bookmarks held in the browser can be exported to a file, but that's usually HTML. You can make your own. Template files help. So do utilities like HTML Tidy

tldr; The quick way is to just make a very simple web page containing your links.
 
Old 07-24-2020, 05:52 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 14,976
Blog Entries: 9

Rep: Reputation: 4240Reputation: 4240Reputation: 4240Reputation: 4240Reputation: 4240Reputation: 4240Reputation: 4240Reputation: 4240Reputation: 4240Reputation: 4240Reputation: 4240
Quote:
Originally Posted by pstein View Post
I created some bookmark files by dragging them from Firefox to a directory. Such a bookmark file has for example for linuxquestions.org
the following content:

[InternetShortcut]
URL=https://www.linuxquestions.org/questions/newthread.php?do=newthread&f=8
IDList=
HotKey=0
IconIndex=0


When I double click it the corresponding webpage is loaded in browser.
Fine.

Now I copy this bookmark file to a webserver directory and navigate to this folder in the (Firefox) browser.

When I click now on this file on the web page the browser is NOT redirected to the given webpage but the content is display ed instead.

Why?

Is this a bookmark file, a webserver or a browser issue?

How do I make one bookmark most easily clickable?

I want to avoid writing a *.html page and embed the bookmark as clickable link.

Thank you
Peter
Are you doing this on Linux? What distro, what FF version?
What is a webserver directory? How do you navigate to a folder with Firefox? - Oh, actually I think I understand, you serve the bookmark file in question, to your Firefox browser? In that case you just want an HTML file with a link in it.
 
Old 07-24-2020, 06:40 AM   #4
boughtonp
Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 418

Rep: Reputation: 262Reputation: 262Reputation: 262
Quote:
Originally Posted by pstein View Post
I want to avoid writing a *.html page and embed the bookmark as clickable link.
What specifically do you want to avoid?

If it's manually updating a HTML page then you can have a server-side script generate either HTML or HTTP redirects, after parsing the INI files you have.

Or you could use existing web-based bookmarking software that probably does everything you want already, and doesn't limit you to adding links from one machine.


If you want something different then you need to clearly describe what you are trying to achieve and why.

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox bookmarks.html not showing correct bookmarks even though file is identical. php Ubuntu 7 11-08-2008 04:12 PM
importing a bookmarks file into a bookmarks subfolder newbiesforever Linux - Software 0 11-07-2006 09:54 PM
how to stop touchpad being clickable jabka Linux - Hardware 0 10-23-2006 04:22 PM
is there an alternate graphical login screen, with clickable icons, like winXP? groovetrain Mandriva 4 10-10-2005 01:01 PM
Clickable Shortcuts (On Desktop) to Apps BarfBag SUSE / openSUSE 2 03-27-2005 11:13 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 09:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration