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

get browser URL for any object #124

Closed
dpocock opened this Issue Mar 10, 2016 · 4 comments

Comments

2 participants
@dpocock

dpocock commented Mar 10, 2016

It would be useful if every object had a method to obtain the URL for viewing the object in Redmine from a browser

@maxtepkeev maxtepkeev added the question label Mar 11, 2016

@maxtepkeev maxtepkeev self-assigned this Mar 11, 2016

@maxtepkeev

This comment has been minimized.

Owner

maxtepkeev commented Mar 11, 2016

Almost (because it doesn't make sense for all objects) every resource object already provides a url property for this, e.g. project.url, issue.url etc. Does that cover your needs or you need something different ?

@dpocock

This comment has been minimized.

dpocock commented Mar 11, 2016

OK, I hadn't seen that when inspect an object with vars(issue.project)

I notice that if I invoke issue.project.url it returns a URL with the project ID rather than the project.identifier string, could that be changed? The identifier is better for clean URLs.

@maxtepkeev

This comment has been minimized.

Owner

maxtepkeev commented Mar 11, 2016

Agree, will fix this ASAP.

@maxtepkeev maxtepkeev added improvement and removed question labels Mar 11, 2016

maxtepkeev added a commit that referenced this issue Mar 25, 2016

@maxtepkeev

This comment has been minimized.

Owner

maxtepkeev commented Mar 27, 2016

Fixed in v1.5.1

@maxtepkeev maxtepkeev closed this Mar 27, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment