pass ref part of url to allow #page= for pdf viewer
This commit is contained in:
parent
0732329a38
commit
a47fe715d1
1 changed files with 3 additions and 0 deletions
|
@ -57,6 +57,9 @@ AtomWebUIControllerFactory::CreateWebUIControllerForURL(content::WebUI* web_ui,
|
|||
src = param.second;
|
||||
}
|
||||
}
|
||||
if (url.has_ref()) {
|
||||
src = src + '#' + url.ref();
|
||||
}
|
||||
auto browser_context = web_ui->GetWebContents()->GetBrowserContext();
|
||||
return new PdfViewerUI(browser_context, web_ui, src);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue