Skip to content

Commit

Permalink
Merge pull request #10 from alarsyo/follow-symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
goktug97 authored May 16, 2020
2 parents 5c830dd + a0aa872 commit 6b371e3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion org-roam-server.el
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@
"Save the current buffer in a variable to serve to the server."
(setq org-roam-server-current-buffer (window-buffer)))

(defvar org-roam-server-root (concat (file-name-directory (or load-file-name buffer-file-name)) "."))
(defvar org-roam-server-root
(concat (file-name-directory
(file-truename (or
load-file-name
buffer-file-name)))
"."))
(setq httpd-root org-roam-server-root)

(defun org-roam-server-html-servlet (file)
Expand Down

0 comments on commit 6b371e3

Please sign in to comment.