Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: tests/test_site/pages/rel_path.html

Issue 29947567: Issue 5333 - Ensure links in metadata and in most tags can be made relative (Closed) Base URL: https://hg.adblockplus.org/cms/
Patch Set: Address comments on PS1 Created Nov. 21, 2018, 4:29 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/test_site/pages/rel_path.html
===================================================================
--- a/tests/test_site/pages/rel_path.html
+++ b/tests/test_site/pages/rel_path.html
@@ -1,4 +1,15 @@
+template = head-test
+
+<!DOCTYPE html>
<html>
+<head>
+ {{ head|safe }}
Vasily Kuznetsov 2018/11/21 23:30:47 This line probably shouldn't be here. It confused
rhowell 2018/12/19 02:33:30 Done.
+ <title>Page Title</title>
+ <link rel="stylesheet" href="/dist/css/main.min.css">
+ <base href="https://www.example.com/news/index.html">
+ <script src="/scripts/myscript.js"></script>
+</head>
+
<body>
Simple TS with default: {{ simple[desc] Translate }}.
Same TS with no default: {{ simple }}.
@@ -7,6 +18,9 @@
Link to a non-translatable page: {{linked-ts2 <a href="sitemap">Site map</a>}}.
Entity escaping in links: {{entity-lnk <a href="http://foo.com/?a&b">Foo</a>}}.
Image link: <img src="img/icon"></img>
+Iframe link: <iframe src="/default.asp"></iframe>
+Script link: <script src="myscripts.js"></script>
+Input link: <input type="image" src="/img/submit.gif" alt="Submit">
Link to external source: <a href="http://bar.de/">Bar</a>
Link to self: <a href="rel_path">
Link to self with extension: <a href="rel_path.html">
@@ -16,5 +30,6 @@
Absolute link to diferent locale: <a href="/de/sitemap">
Relative link to page in subfolder: <a href="../foo/bar">
Absolute link to page in subfolder: <a href="/foo/bar">
+Resource URL: <link rel="stylesheet" href="/dist/css/main.min.css">
</body>
</html>

Powered by Google App Engine
This is Rietveld