Skip to content

Issue #3252103 by chmez: Overview of likes brings you to the wrong page

Problem

On node pages, it is possible to like content and to see the users that liked it as well. When I click on the 'like" link I am redirected to the wrong page because the URL does not keep into consideration the subdirectory.

Solution

Use route builder for creating a path to page with likes list.

Issue tracker

How to test

  • Create a clone of the "html" directory inside yourself.
  • Replace the "# RewriteBase /drupal" line by the "RewriteBase /html" line in the "html/html/.htaccess" file.
  • Open "http://127.0.0.1:32770/html" (your port can be different) in the browser and log in as a regular user.
  • Navigate to the overview page of a topic with likes.
  • When you click "X likes" (X is the number of likes) then you should see a pop-up with a list of users who liked the topic.

Release notes

Make to be able to use likes pop-up on a website in sub-directory.

Edited by Oleksandr Horbatiuk

Merge request reports