Skip to content

data-exclude-hash="false" seems not work #3444

Open
@Nambers

Description

@Nambers

Describe the Bug

Umami still ignore/remove the tailing hash, I test it with manually calling in console

umami.track((props) => ({ ...props, url: `test${window.location.pathname}${window.location.hash}` }))

and it works with

umami.track((props) => ({ ...props, url: `test${window.location.pathname}${window.location.hash.replace('#','')}` }))

my include

<script defer
        src="xxxxx/script.js"
        data-website-id="xxxxx"
        data-auto-track="true"
        data-exclude-hash="false"
    />

example URL: 'test/albums/de25/#ea03593jpg' or 'test/albums/de25#ea03593jpg'

Database

PostgreSQL

Relevant log output

Which Umami version are you using? (if relevant)

v2.18.1

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions