Skip to content

Commit 96274e6

Browse files
authored
fix(gui): correct file:// URL for the contributor WebView (#619)
Follow-up to #618. The contributor dialog built a malformed `file:////...` URL (three slashes plus the leading slash of the absolute resources path), so the WebView showed the filesystem root instead of the page. Use `file://` like WebGuideDialog, which resolves correctly to `file:///usr/.../index.html`.
1 parent b11db8f commit 96274e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/slic3r/GUI/AboutDialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ ContributorDialog::ContributorDialog(wxWindow *parent)
527527
// theme to it (the page has no theme switch of its own).
528528
std::string url = (boost::filesystem::path(resources_dir()) / "web/contribute/index.html").make_preferred().string();
529529
std::replace(url.begin(), url.end(), '\\', '/');
530-
url = "file:///" + url + (wxGetApp().dark_mode() ? "?theme=dark" : "?theme=light");
530+
url = "file://" + url + (wxGetApp().dark_mode() ? "?theme=dark" : "?theme=light");
531531

532532
m_webview = WebView::CreateWebView(this, from_u8(url));
533533
sizer->Add(m_webview, 1, wxEXPAND, 0);

0 commit comments

Comments
 (0)