Problem/Motivation

Sharing the homepage has path in the url even if site has redirect in place to not display path on the site homepage.

Steps to reproduce

* Drupal 9.1
* Have redirect module configured to remove path on site homepage
* Share the homepage using addtoany buttons
* Share URL of homepage displays the full path (alias or node/id if no alias set for homepage)
* Entering the homepage with path alias an unnecessary redirect happens that removes the path

Proposed resolution

Fix the code in addtoany_create_data() (will attach a patch)

Issue fork addtoany-3196231

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

kirkkala created an issue. See original summary.

kirkkala’s picture

Assigned: kirkkala » Unassigned
Status: Active » Needs review

Created merge request

  • micropat committed ecb430e on 8.x-1.x
    Issue #3196231 by kirkkala: Remove path from the frontpage share url
    
micropat’s picture

Status: Needs review » Fixed

Thanks for the patch! This should make the next release.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.