Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed the bad path, missing the /p/ #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ The list is available at `/list`

npm install https://github.com/esripdx/ep_padlist/tarball/master

One crucial issue is to ensure that the URL path to individual pads is correct. By default etherpad-lite has a URL template like http://localhost:9001/p/[padname] - depending on how you configure your webserver that proxies the node server, you may eliminate the /p/ to make the pads' URLs more "friendly", e.g. http(s)://[sitename]/[padname] - in that case, you will need to remove the /p/ from templates/pad.html, or otherwise alter it to suit your needs.

### License

Copyright 2013 Esri, Inc
Expand Down
4 changes: 2 additions & 2 deletions templates/pads.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ <h1>Pads</h1>
</div>
<ul>
<% pads.forEach(function(pad){ %>
<li><a href="/<%= pad.toString() %>"><%= pad.toString() %></a></li>
<li><a href="/p/<%= pad.toString() %>"><%= pad.toString() %></a></li>
<% }) %>
</ul>

<script src="/list/static/js/main.js"></script>
</body>
</html>
</html>