summaryrefslogtreecommitdiff
path: root/bin/page.html.erb
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-01-03 20:57:36 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-01-03 20:57:36 -0500
commita5f4e1ed470b96c1f97f3827fe07d530c53f0e5c (patch)
treec4ab7430b9c2f54e9ab3ac10f62f0321af6578de /bin/page.html.erb
parent5449dca686d7bdbd5f09acd4e9fd8647535acde9 (diff)
I hate URL handling.
Diffstat (limited to 'bin/page.html.erb')
-rw-r--r--bin/page.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/page.html.erb b/bin/page.html.erb
index 354b123..49be4e8 100644
--- a/bin/page.html.erb
+++ b/bin/page.html.erb
@@ -30,7 +30,7 @@
</article>
<footer>
<%= @page.rights %>
- <p>Page source: <a href="<%= File.basename(@page.src) %>"><%= File.basename(@page.src) %></a></p>
+ <p>Page source: <a href="<%= @url.route_to(@page.srcurl) %>"><%= File.basename(@page.srcurl.to_s) %></a></p>
<p>Website source: <a href="https://git.andrewdm.me/www.git">www.git</a></p>
</footer>
</body>