windows desktop url shortcuts adding characters in chrome - google-chrome

Newbie programmer here. I recently started to have an issue opening desktop shortcuts in chrome. We have a internal web page that opens in chrome on the desktop. The path to the page is correct in the shortcut properties. The url looks like this:
path to some local server\name of some file.asp
Recently if the desktop short cuts are opened in chrome the url will show added characters which will look simliar to this:
path to some local server\name of some file.asplocations=2xsomeotherstuff
or we will find a single quotation mark at the end of the url. If the unneeded information is deleted the url opens just fine. How is the url change being injected? How can we alleviate this problem? can we set the amount of characters the url can be?can any kind of programming restrictions be implemented?If so how would they be implemented? Any help is appreciated.
steps taken:
1. clean pc
2. uninstall chrome and left over files
3. reinstall chrome
4. check for adware
5. retype the url in the shortcut properties

I would suggest 3 possible solutions:
1) Disable location sharing setting in chrome
http://www.wikihow.com/Change-Your-Location-Sharing-Setting-in-Google-Chrome
2) End the url with a ?
3) Try using a shortcut as an application launcher:
path/to/chrome.exe ""
or
path/to/chrome.exe --app=

Related

How to open a local HTML file in Safari on an iPad

I'm teaching a Year7 class via Zoom on writing HTML, and I have one student on an iPad (the rest are on desktops/laptops), and they're not able to get their webpage to open in Safari (I'm using Chrome on Windows, which of course is simply a matter of double-clicking on the file). I'm trying to see what she sees, but I think Zoom is possibly not showing me the pop-up dialogues. She is using Notes to write the page (which looked to be the closest iOS equivalent to Notepad).
I Googled and sent her a few blogs, but still not working. I said she needs to click on Share and look for something like "copy path to file" or "copy link", and then paste that into the Safari address bar. She said when she did that Safari was showing the source code, not the rendered page. When she just taps the file it opens in Notes, not Safari. That made me suspect her file was actually index.html.txt (she tells me she has extensions switched on), but when I sent her my own file, which is definitely only index.html, she says the same thing is happenning.
Is anyone able to give me some definite step-by-step instructions (this is for a Year 7 student) on how to open their local HTML page in Safari?
thanks,
Donald.
Safari iPad no longer supports access to local or iCloud files. A number of iPadOS apps will however allow a user to view, edit, and test html code in files stored in local iPad, iCloud, or third party (e.g. Google or Dropbox) storage folders. One needs only to search in the App Store for “html editor” to see the list. Some of the apps have features that rival or exceed those found in tools on desktop (laptop) systems.
I had the same issue today on ios15.
There is a free app called Koder available on the App Store which will let you edit and view the HTML file. I’m no expert but the editor looks pretty fully featured at first glance.
Sorry to say but an iPad is obviously not the best place for simple HTML editing. At least not with the default apps available on iOS.
Given an existing HTML File one can use Files app to navigate to it and open it with double click. This will open the file in a very simple viewer wich is at least able to render the HTML. As a developer i bet its using WKWebView which is basically Safari's HTML View.
Turns out Microsoft Edge, unlike Safari, can still open local html files. Discovered in this answer. To wit:
Install Microsoft Edge from the App Store
Open Files (or whatever file browsing app you like).
Open the file, then tap the Share button to send to another app.
Scroll across to "More...", choose Edge, and voila!

When I open an html file from MacOS Finder, why is chrome only opening a blank window/tab?

I am having trouble getting Chrome to open html files from MacOS Finder. This includes double-clicking or right clicking and selecting open. These actions result in opening or making Chrome the active application, but not opening the html file. Does anyone have any ideas on how to fix this? It didn't start after an update or any detectible change in how I work. It seems totally random.
Here's what I've tried:
opening multiple html files created in different applications (sublime, dreamweaver, atom, etc.)
deleting Chrome preferences
resetting all Chrome settings
running all possible updates
restarting Chrome and computer
Here's what does work:
opening files from within Chrome via File>Open File
opening a new tab or window in Chrome and dragging an html file into it
opening html files in Firefox and Safari by all available methods without encountering the issue I'm experiencing with Chrome.
Thank you!
Recreating the Sublime Text preference file resolved the issue. Admittedly I feel kinda dumb for not doing this in my first round of troubleshooting, but at least I did it now! Hopefully this at least helps some other people out there with the same issue.

OneNote to open link in Chrome without Chrome being default

I have a very simple question I could not find answer for myself: I want links in OneNote to open in Chrome.
Note that the default browser is IE and I cannot change it (not admin etc).
Tried: "chrome_path url" - didn't work. Everything I could think about didn't work.
Please provide explicit solution so that link from within OneNote opens in Chrome rather than in IE.
To note, there are multiple links, so batch file won't do in this case.
Thank you in advance!
I had a little go with testing some ideas that I had though I'm very new to OneNote. It's easy enough to open Chrome from a hyperlink:
Select text to link
Add link
Select the file icon and navigate to chrome.exe. In my instance - C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
I believe you cannot pass arguments to the exe as it is considered a security issue. This certainly used to be the case and I'm not sure if they have modified their thinking since. The only way I can think of is to create a batch file which includes your ideal website and link to the batch file:
"start chrome http://www.youtube.com"
I found two ways to do it, though neither is the perfect:
There is a 3rd party OneNote add-on which adds more browsers in the right-click menu. Though it is not free and maybe can't be installed on restricted computers.
It works only on OneNote docs which are saved onto Onedrive. Open the OneNote page which has the links right in the Chrome, not in the desktop app. Then any links you click will open in the same browser. You can get the address of the OneNote page by clicking on 'Copy Link to Page' in OneNote app, then paste it to a notepad. Copy the first url to Chrome's address bar.
For those who has admin right, this problem can be solved by following Make Chrome your default browser. It is set at machine level, not onenote level.

chrome frame - not working in local machine

I have installed chrome frame in IE 8. Then in the HTML page I added the below meta tag
This works fine when I upload the HTML page online and tested. But when I test the same locally it is not working.
Please advise how to solve this.
Thanks
What you have to do is create a new registry entry that will allow you to prefix any URL with "gcf:".
You can find the instructions here: http://www.chromium.org/developers/how-tos/chrome-frame-getting-started#TOC-Testing-Your-Sites
Once you have created the registry entry, you can now force IE to use Chrome Frame by prefixing the URL like so:
gcf:http://www.google.com
or
gcf:C:\tests\chromeFrameTest.html

How to open a windows folder when clicking on some link on a HTML page using Python

I am writing following program :
***import os
filepath=r'C:\TestData\openfolder.html'
abc=open(filepath,'w')
abc.writelines('<html><head></head><body>')
abc.writelines('First Link\n')
abc.writelines('</body></html>')***
What I want to do is if I click First Link on a browser, I should be able to open the folder having path as "Filepath". os.startfile works perfect for opening a folder but I don't know how to implement this inside some link.
Thanks.
Try to use URI with file: scheme like file:///C:/TestData/openfolder.html in your html:
Link to test data
Here is article on using file URIs in Windows.
UPD (extraction from comments): Each browser has its own way to handle such urls. At least Internet Explorer 8 under Windows 7 opens links in Windows Explorer as was required by jags.
Finally, for dynamic pages the web server is required. If one is needed take a look at discussion on creating simple web services using python.
You can't. Clicking a link to a file in a browser will not launch the application associated with that file type on the OS. You can apparently do some funky stuff with JavaScript to launch particular filetypes with particular applications (see here: http://forums.devshed.com/asp-programming-51/launching-ms-word-to-open-file-from-a-hyperlink-55714.html) but apart from that the web browser is not the file browser.
Link Text
Replace FOLDER_PATH with the path of the folder you want to open in explorer.
Alain's answer works.
<'a href="FOLDER_PATH" target="_explorer.exe">Link Text<'/a>
I removed the tick marks at the beginning and end, and found that it works in
Internet Explorer - opens a Windows Explorer window
Firefox (Windows and Linux), but opens a new tab - same as target="_blank"
Chrome - opens a new tab like Firefox
I also noticed that / and \ (forward and backward slashes) are equal in html links - they can even be mixed.