42e408859b
It is hard to remember to add `/` at the end of the URL when configuring a new etherpad URL. Also, web server proxies tend to do weird stuff when you assume that you have a slash on the end of each URL. So, I took a look at how to avoid doing that. It turns out that both urljoin / os.path.join are kinda bad for handling URL building. Also, APPLICATION_ROOT didn't seem that necessary since Flask knows what to do with a `/` at the start of a URL, so I dropped it. I think this doesn't break anything!
22 lines
740 B
HTML
22 lines
740 B
HTML
<!DOCTYPE html>
|
|
<html lang="{{ lang }}">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<script src="{{ url_for('static', filename='paged.polyfill.js') }}" type="text/javascript"></script>
|
|
<link href="{{ url_for('static', filename='pagedjs.css') }}" rel="stylesheet" type="text/css" media="screen">
|
|
<link href="/{{ name }}/stylesheet.css" rel="stylesheet" type="text/css" media="print">
|
|
<title>{{ title }}</title>
|
|
</head>
|
|
<body>
|
|
<section id="cover">
|
|
<h1 id="cover_title">{{ title }}</h1>
|
|
<div id="cover_container"></div>
|
|
</section>
|
|
|
|
<section id="main">
|
|
<div id="wrapper">{{ pad_content }}</div>
|
|
</section>
|
|
</body>
|
|
</html>
|