Skip to content

fix the url encoding in timeslider & return to pad link#136

Closed
hikinggrass wants to merge 3 commits intoether:masterfrom
hikinggrass:master
Closed

fix the url encoding in timeslider & return to pad link#136
hikinggrass wants to merge 3 commits intoether:masterfrom
hikinggrass:master

Conversation

@hikinggrass
Copy link
Copy Markdown

This fixes the broken url ecoding in the timeslider if a pad with spaces in its name is opened,
The second commit fixes the behavior of the "Return to pad" link if the page is reloaded. This was broken because after a reload document.referrer points to timeslider, not to the original pad.

… this breaks if you reload the page. better: use a substring of document.location.href
…rer with a pad-url is given (/p/*) use this referrer for the Return to pad link, if not use a substring of document.location
Comment thread static/timeslider.html
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

better use decodeURIComponent(padID)

see my patch Wikinaut@5ea8dd6

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@Wikinaut this is already fixed now or?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@Pita: in my version: yes. I recommend to use decodeURIComponent instead of unescape (in pad2.js and in timeslider.html)
See http://xkr.us/articles/javascript/encode-compare/ and other webpages.

I also changed the order of padname and "Etherpad lite" string in HTML page titles, see Wikinaut@a671140 I like to have the specific padname beginning the page titles and browser tabs such as "Mypad | Etherpad lite", instead of the non-specific "Etherpad lite | Mypad".

@Pita
Copy link
Copy Markdown
Contributor

Pita commented Nov 26, 2011

I think we can close this or? Should be fixed with @wikinauts commit

@Pita
Copy link
Copy Markdown
Contributor

Pita commented Nov 27, 2011

I cherry picked your last commit hikinggrass@ae73b11 thx

@Pita Pita closed this Nov 27, 2011
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.

3 participants