Switch branches/tags
Nothing to show
Find file History
Latest commit e024bb2 Jan 3, 2017 @andytuba andytuba Sanitize trailing ? when stripping analytics parameters from URL
Safari doesn't remove the ? from a URL when setting `url.search = ''`
which results in links not correctly applying `:visited`.

For example, before this change:
https://www.reddit.com/?utm_foo=bar -> https://www.reddit.com/?
and links to https://www.reddit.com/ don't render as :visited

After this change,
https://www.reddit.com/?utm_foo=bar -> https://www.reddit.com/
and links to https://www.reddit.com/ are properly empurpled.
Additionally, hash is preserved:
https://www.reddit.com/?utm_foo=bar&baz=qux#hoopla -> https://www.reddit.com/?baz=qux#hoopla
Permalink
..
Failed to load latest commit information.
embed Frontend: De-dupe UUID function. Dec 11, 2015
expando Expando: Do not float Oct 7, 2016
google-tag-manager GTM: Use `iframe.name` to bootstrap data on load. Dec 22, 2015
lib Update event-tracker to latest version Feb 1, 2016
models Subreddit Rules: Make about/rules page update cached rules Jan 25, 2016
ui Expando: New NSFW media flow Oct 7, 2016
access.js Timeouts: Add access.js module. Nov 12, 2015
action-forms.js Timeouts: Add access.js module. Nov 12, 2015
actions.js JS: Add actions.js Oct 7, 2016
adminbar.js Store: Always use safeGet and safeSet. Sep 22, 2015
ajax.js Frontend: Resolve circular dependencies. Dec 11, 2015
analytics.js Sanitize trailing ? when stripping analytics parameters from URL Jan 4, 2017
apps.js Remove JS semicolons and use single quote strings. Aug 22, 2012
archived.js Archived Posts: Add popup Feb 18, 2016
backbone-init.js Frontend: Resolve circular dependencies. Dec 11, 2015
base.js Frontend: Resolve circular dependencies. Dec 11, 2015
bootstrap.tooltip.extension.js Redesign login Nov 17, 2014
cache-poisoning-detection.js Add loggedin cache poisoning detection using a canary cookie Aug 25, 2015
client-error-logger.js Do not log certain client errors to server May 28, 2014
compact.js Store: Always use safeGet and safeSet. Sep 22, 2015
custom-event.js Add google tag manager Dec 9, 2015
do-not-track.js Add google tag manager Dec 9, 2015
edit-subreddit-rules.js SubredditRules: Fix new rule button bug Feb 18, 2016
embed.js embed.js: Fix race condition with preview Aug 4, 2015
errors.js errors.js: Add r.errors.create method Oct 7, 2016
events.js Add callback to r.analytics.sendEvent Oct 7, 2016
expando.js Fix expando events on previews getting wrong provider Oct 7, 2016
filter.js Filters: Add /me/f/all (Gold) and /me/f/mod filter multis. Jul 22, 2014
flair.js Frontend: Remove references to legacy config global object. Dec 11, 2015
frames.js frames.js: Allow multiple targets to be proxied on a single namespace Dec 22, 2015
gate-popup.js Cleanup: Pull out shared popup code Feb 18, 2016
gold.js Frontend: Remove references to legacy config global object. Dec 11, 2015
highlight.js Subreddit CSS: Make /about/stylesheet show unminified CSS. Sep 27, 2012
hooks.js Simplify hooks.js Dec 11, 2015
https-tester.js Frontend: De-dupe UUID function. Dec 11, 2015
i18n.js js i18n: Add a plural no-op function. Mar 3, 2014
image-upload.js Frontend: Remove references to legacy config global object. Dec 11, 2015
interestbar.js Add full gettext support to the frontend. Aug 7, 2013
jail.js Add google tag manager Dec 9, 2015
jquery.reddit.js Add already exists error to form for duplicate links Jun 15, 2016
link-click-tracking.js Replace link href with inbound tracking url on click Dec 21, 2016
locked.js Cleanup: Pull out shared popup code Feb 18, 2016
logging.js Frontend: Resolve circular dependencies. Dec 11, 2015
login.js Events: Add login modal event Feb 19, 2016
messagecompose.js Avoid selectedOptions for IE compatiblity. May 31, 2016
messages.js Fix "mark all as read" ratelimiter Jan 11, 2016
migrate-global-reddit.js Move config migration to separate file Dec 11, 2015
multi.js Accept '/r/foo' everywhere: part 2 Apr 17, 2015
newsletter.js Store: Always use safeGet and safeSet. Sep 22, 2015
policies.js policy pages: Handle periods in heading ids. Dec 13, 2013
popup.js Popup: Ensure all popups can be closed by esc key. Nov 19, 2015
post-sharing.js Focus recipients input on share via reddit pm/email click Sep 7, 2016
preload.js Unescape data in Backbone.sync. May 27, 2014
qrcode.js 2FA: Add `issuer` to QR code. Sep 26, 2014
recommender.js Show recommended content in /explore Dec 4, 2013
reddit-hook.js Simplify hooks.js Dec 11, 2015
reddit-init-hook.js Events: Move event handling into r.analytics Jan 4, 2016
reddit.js reddit.js: Don't submit disabled forms in post_form Oct 7, 2016
report.js Fix timeout modal on report link. Feb 18, 2016
safe-store.js Frontend: Resolve circular dependencies. Dec 11, 2015
saved.js Comment embeds: add UI for creating embed code Feb 24, 2015
scrollupdater.js Remove scrollupdater debug statements. Jan 5, 2015
setup.js Frontend: Resolve circular dependencies. Dec 11, 2015
sponsored.js Ads: Remove roadblocks functionality Nov 29, 2016
spotlight.js spotlight.js: Send flag for ad auto refreshes Oct 5, 2015
sr-autocomplete.js Frontend: Resolve circular dependencies. Dec 11, 2015
stateify.js Add password strength meter Dec 8, 2014
strength-meter.js Password strength: mark passwords containing email address weak Jun 30, 2015
synced-session-storage.js r.syncedSessionStorage: Get values from e.originalEvent Oct 7, 2016
templates.js TemplateFileSource: Unescape inlined templates when uncompressedJS. May 27, 2014
timeouts.js Cleanup: Pull out shared popup code Feb 18, 2016
timeseries.js traffic: Generalize max-row highlighter and use on all columns. Jan 15, 2013
timetext.js Base Timetext updates off of server time. Oct 8, 2015
timings.js Move timings out of adminbar. Sep 19, 2014
toggles.js Comment embeds: add togglable help for edit control Feb 24, 2015
traffic.js Add full gettext support to the frontend. Aug 7, 2013
ui.js Frontend: Add ui.TextCounter. Jan 25, 2016
uibase.js Update ThingUpdater. Oct 19, 2015
utils.js Use s3 direct POST for ads images. Dec 9, 2015
uuid.js Frontend: De-dupe UUID function. Dec 11, 2015
validator.js validator.js: Add option for errors not to be cleared when field is e… Aug 24, 2015
visited.js Fix `onVisit()` when middle-clicking Mar 19, 2015
voting.js Cleanup: Remove old unvotable message Feb 18, 2016
warn-on-unload.js Fix unload dialog on duplicate link submissions Jun 7, 2016
websocket.js Websockets: add metrics for connection time and failures. Oct 23, 2014
wiki.js Timeouts: Show modal when mod attempts to hide wiki revision. Nov 12, 2015