Closed Bug 1601188 Opened 5 years ago Closed 5 years ago

Cannot create bookmark with %s in host part of url

Categories

(Firefox :: Bookmarks & History, defect)

70 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1539973

People

(Reporter: lukas, Unassigned)

Details

Attachments

(1 file)

Attached image firefox.png

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0

Steps to reproduce:

I tried to create bookmark for http://wls01-%s.cs.infra:15001/console/ with keyword, so it allows me to quickly access different hosts in out network.

Actual results:

The Add (Přidat in Czech) button is disabled.

Expected results:

It should have allowed me to save the bookmark and later substitute %s with input (as it does when %s is in path or query string part of url).
I believe it worked lik this before (not sure when though).

(In reply to lukas from comment #0)

http://wls01-%s.cs.infra:15001/console/

Nothing happens when right-clicking this and choosing Bookmark This Link. I'd expect either some kind of feedback explaining what went wrong, or for the menu item to be disabled or missing. Browser Console output:

Bookmarks.jsm: fetch: Invalid value for property 'url': "http://wls01-%s.cs.infra:15001/console/" PlacesUtils.jsm:831

:mak if that sounds worth addressing, maybe this report could be repurposed or closed as a duplicate if a relevant bug already exists (I couldn't turn up anything). Otherwise, it's a duplicate of bug 1539973.

Component: Untriaged → Bookmarks & History
Flags: needinfo?(mak)

Thanks for the duplicate bug, I was not able to find it.
This works in Chrome based browsers via custom search engines, so I'm afraid I'll have to stick with them for my work.

As explained previously, keywords are not intended to replace part of the origin, because that generates an invalid url and the API refuses to work with invalid urls.
An add-on could probably do it using the omnibox api, then it could register a keyword and return results for it.
We'll see if it's worth supporting this functionality when someone starts working on bug 648398.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Flags: needinfo?(mak)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: