Skip to content

A platform for community discussion. Free, open, simple.

Revert "FEATURE: when entering a topic scroll to last visited line marker (#18440)" (#18917)

Jarek Radoszd2ea39c932ec
diff --git a/app/assets/javascripts/discourse/app/lib/url.js b/app/assets/javascripts/discourse/app/lib/url.js
index 1d979f4c568..622911c4173 100644
--- a/app/assets/javascripts/discourse/app/lib/url.js
+++ b/app/assets/javascripts/discourse/app/lib/url.js
@@ -117,15 +117,6 @@ const DiscourseURL = EmberObject.extend({
if (!holder) {
selector = holderId;
-
- if (
- document.getElementsByClassName(
- `topic-post-visited-line post-${postNumber - 1}`
- )?.length === 1
- ) {
- selector = ".small-action.topic-post-visited";
- }
-
holder = document.querySelector(selector);
}