Skip to content

Support for path traversal #2413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

pascalbaljet
Copy link
Member

This PR brings to support path traversal, for example, in the <Link> component. This behavior matches how regular <a> tags work.

For example, if you're on http://app.test/users/1/edit/, you can now use relative dotted syntax like:

<template>
    <Link href="../">User 1 Profile</Link>
    <Link href="../../">Users Index<Link>
    <Link href="../delete">Delete User 1<Link>
</template>

Note how the original URL has a trailing slash. Again, that's how it works with regular <a> tags. Fixes #1917.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

../ not working with Link component
1 participant