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

mod_development doesn't show whole project path #2118

Open
DorienD opened this issue Jul 19, 2019 · 4 comments

Comments

@DorienD
Copy link
Member

commented Jul 19, 2019

When showing paths in the mod_development module the paths are correct for zotonic modules but when the template is from the project it hides some parts. I've included a screenshot:

Screenshot 2019-07-19 at 12 31 18

@mworrell

This comment has been minimized.

Copy link
Member

commented Jul 19, 2019

Ah yes, that is a "feature" .... the tracer tries to hide the absolute path, to prevent leaking information.

I am not sure why the f is there though, is that the name of your site?

@mworrell mworrell added this to the 0.51 milestone Jul 19, 2019

@DorienD

This comment has been minimized.

Copy link
Member Author

commented Jul 19, 2019

There was no f in the projectname :)

@mworrell

This comment has been minimized.

Copy link
Member

commented Jul 19, 2019

Mysterious f it is 🙃

@mworrell mworrell modified the milestones: 0.51, 0.52 Aug 5, 2019

@mworrell

This comment has been minimized.

Copy link
Member

commented Aug 5, 2019

The path is always truncated to remove the zotonic root, this is wrong if the template is not located in the zotonic directory.

relpath(FilePath) ->
    Base = os:getenv("ZOTONIC"),
    lists:nthtail(1+length(Base), FilePath).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.