Docker Desktop - Set "Open in Browser" default page - docker

When you click on the "Open In Browser" button, the site opened is localhost:port.
Is there any way to change this to open a specific page? (like localhost:port/swagger/index.html )
I'm creating the images using docker-compose in VS 2019 and have the default page set to swagger, and upon compiling it opens, but when clicking from Docker Desktop it doesn't

VS Code Docker Plugin has the same feature and I assume it would mirror the functionally.
It is implemented in this commit however the URL never sets a page only a port so it looks like it is not possible.
const url = `${protocol}://${host}:${mappedPort.HostPort}`;

Related

Edge developer window automatically pops up

I am doing some web development using Blazor Wasm framework.
I use Edge for debugging. For some reason the browser automatically pops up the following dev page, meanwhile the startup page is in loading status for 20-30 seconds.
Did you experience anything like this or can you suggest anything for fix?
Perhaps when you choose a browser to debugger the Application, you are adding the arguments to open the devtools.
For example, I'm using visual studio 2019, click the down arrow to the right of "IIS Express", and select the "Browse With..." option. The "Browse With" dialog box will open. Click the "Add" button.
Then, in the Program field, enter the path to Microsoft Edge. In the Arguments field, enter the command line switch to open devtools, --auto-open-devtools-for-tabs. In the Friendly Name field, enter something descriptive, for example, Edge Bate w/ DevTools.
After that, when we select this option to browse the website, it will open the website with devtools, like this:
So, check your Visual Studio, and try to re-add the browser without arguments.

Windows Server 2016: How to create a website shortcut that opens in Edge?

Edge not being my default browser, how do I create a link that opens in Edge on my Desktop in a Windows Server 2016 VM?
Unfortunately, when I follow the instructions to create custom URL shortcuts on desktop with Edge in Windows 10, and I prepend the protocol microsoft-edge in the URL:
microsoft-edge:http://www.google.com
then I get a warning popup:
Is this something that can be fixed on my side?
As a workaround, I ended up setting up Edge as my default browser in the Default app settings, and editing my other shortcuts so that they open in Internet Explorer:
"C:\Program Files\Internet Explorer\iexplore.exe" www.microsoft.com

opening default browser with delphi at specific position

I want to open a web page at default browser at a specific position and also open another webpages at that one, not new task of that browser. maybe user opens new task of that browser but by clicking a button in my delphi program the selected web page have to open at first one. is that possible? my company wants me to program such thing BUT I do not know how to do. I really appricate any help. thanks.
There are instructions here to open the default browser, but you may even be able to "run" a url, as you can from the Windows run command. You then need to retain the handle of that process so that you can do something with it.
To open a web page at a particular point you would ideally use a named anchor in the page, ie, the bit after a hash: http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_a_name If you don't have control of the page and there are no named anchors you could try scrolling: How to scroll the scrollbar in external application via WinAPI?

How to create a link to web page?

I would like to create a link to http://localhost:3000 so that when clicked,
Firefox will be opened on that page. How should I do this ?
You create this link as with any other:
Link to localhost
Of course this links to the localhost of whoever accesses the page; so the result of my clicking the link is a very different location/event than if you click the link (assuming we're not using the same computer, obviously).
If we're talking about a desktop shortcut (and I'm assuming Windows XP, here):
Right click your desktop and go to New -> Shortcut.
In the program location, enter the location of Firefox (something like C:\Program Files\Mozilla Firefox\firefox.exe)
Once the shortcut is on your desktop, right click it and go to properties.
In the "Target:" field, append links with spaces between each:
Link to quoted answer.

Opening my JQTouch Iphone WebApp for the home icon, why every external link open in another safari window?

Using the JQTouch library, usely links like the following ... should open the new page in the SAME window. That works fine when I go to the site using Safari BUT when I launch the site from the home saved icon, it opens a fullscreen site and on the first link it opens a NEW Safari window. How can I make it stay in the same original fullscreen window?
You have to set the target to _webapp. E.g:
<li class="arrow">Some Page</li>
and then it will load on the same page.
You need to look into manifest files.
The manifest file declares what files (html, javascript, css, jpgs etc.) that the iPhone should cache in order to make a webapp work offline. A part of the manifest file is used to declare which URLs are OK to use when in full screen (webapp) mode.
Specifically look at NETWORK in manifest files.
Example:
NETWORK:
*
This should allow access to any URL you like, and stay in webapp mode.
Alternatively use target="_self" - I haven't seen target="_webapp" anywhere.
/Mogens
One solution I found here is to change the way you write your links for a mobile app. Rather than a href='link.url' you'd write a href="javascript.window.location.href='link.url'"
Dislaimer: I haven't personally tried this yet, so I can't guarantee it will work. But logically, it does make sense.
Using target="_webapp" works only if you remove the rel="external", you cannot have both.

Resources