Bug Description: 

Executing the command [HTML > HTML Preview Web Server] does not display the
loaded html page, served from a settings specified web server location, on first
opening PSPad. It will correctly load the page, and serve it from the specified
web server, if the user visits [Settings > Program Settings ...] then
subsequently runs [HTML > HTML Preview Web Server]. 

Steps to reproduce the bug.

1. Create a web page at C:\Users\UserName\Documents\Webroot\index.html

2. Open PSPad. Settings > Program Settings > Web Server. Fill out as follows
Server: localhost:8080
Document Root: C:\Users\UserName\Documents\Webroot

[Assuming a web server correctly configured to run at that location]

3. Close PSPad.

4. Open PSPad. Load C:\Users\UserName\Documents\Webroot\index.html into PSPad.
HTML > HTML Preview Web Server. Observe the wrong Url is returned
"http:///index.html"; and the error message displayed is "This page can't be
displayed".

5. Close the HTML Page Preview window. PSPad > Settings > Program Settings.
Press Cancel (no need to change any value in the Program Settings Window).

6.  HTML > HTML Preview Web Server. Observe the correct url is displayed
"http://localhost:8080/index.html";. You may need to hit the "Go to Page" command
to load the page. Observe the page is correctly displayed.

Running:
Windows 10 Pro 
PSPAD 4.6.0 (2700)

-- 
<http://forum.pspad.com/read.php?4,66430,66430>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem