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

Consolidate two editButton href tags into one #324

Merged
merged 1 commit into from
Sep 2, 2019

Conversation

calvellido
Copy link
Contributor

@calvellido calvellido commented Sep 2, 2019

  • Consolidate two editButton href tags into one

This fixes #323

@calvellido calvellido added the bug Something isn't working label Sep 2, 2019
@calvellido calvellido changed the title Consolidate two MicrositeEditButton href tags into one Consolidate two editButton href tags into one Sep 2, 2019
@calvellido calvellido merged commit e43c2cf into master Sep 2, 2019
@calvellido calvellido deleted the jv-323-edit-button-href branch September 2, 2019 13:47
@sritchie
Copy link
Contributor

sritchie commented Sep 2, 2019

Does this need any special treatment to make sure that a / appears between the two?

@calvellido
Copy link
Contributor Author

Nothing special, just taking into account how the URL is formed, so you should be including the slash in the button basePath, i.e:

micrositeEditButton := Some(MicrositeEditButton("Improve this Page", "/edit/master/docs/src/main/tut/docs/settings.md"))

BTW, theoretically Scala Tags will validate a bad href formation:

http://www.lihaoyi.com/scalatags/#Auto-escapingandunsanitizedInput

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Edit button has a space between the project URL and the suffix.
3 participants