Skip to content

Rewriting URL when <base href="" /> tag is set #148

@kctech

Description

@kctech

Great plugin - love it!

I use MODX CMS, that requires the to be set. I've noticed that when this is set the plugin will remove anything preceding the base URL when adding the #. During static development, when the base tag is not used, this issue does not occur.

E.g.
A dev site with tag of <base href="http://localhost/dev_site/dist/" />

When scrolling, a page, like:
http://localhost/dev_site/dist/content-page.html

Will be rewritten to:
http://localhost/dev_site/dist/#scrollify-section

Instead of:
http://localhost/dev_site/dist/content-page.html#scrollify-section

Hope that makes sense, if not I'll upload a demo somewhere

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions