Skip to content

always provide revision number for xrefs #1743

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

Merged
merged 5 commits into from
Aug 22, 2017

Conversation

vladak
Copy link
Member

@vladak vladak commented Aug 22, 2017

No description provided.

@vladak
Copy link
Member Author

vladak commented Aug 22, 2017

I found out this does not work yet - clicking on line number erases the revision part of the URL. Needs a bit more work. Filed that as #1745 - this is pre-existing bug.

* @return location to redirect to or null if failed
*/
public String getLatestRevisionLocation() {
return new String(req.getContextPath() + Prefix.XREF_P +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use StringBuilder and append please

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the advantage of StringBuilder ? Seems less readable to me.

@tarzanek tarzanek added this to the 1.1 milestone Aug 22, 2017
@tarzanek
Copy link
Contributor

please fix the commend and merge

@tarzanek
Copy link
Contributor

(and thank youuuuu sir! :) )

@vladak
Copy link
Member Author

vladak commented Aug 22, 2017

Still need to figure out the hash URL rewrite. I suspect there is some JS meddling with the URL.

@vladak vladak closed this Aug 22, 2017
@vladak vladak reopened this Aug 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants