Closed Bug 1904760 Opened 1 year ago Closed 11 months ago

Misinterpretation of ./ path-link url

Categories

(Toolkit :: View Source, defect, P3)

Firefox 126
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: webmaster555, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0

Steps to reproduce:

a link <a href="./"> is noted with ./ (1 dot and 1 forward slash)

Actual results:

Firefox interpret the link like it was <a href="../"> (2 dots 1 forward slash) and go up in the directory arborescence

Expected results:

Stay in the same directory and NOT going up in the tree
For instance the tree is /first/second/
I'm browsing inside /second/, then I click the link <a href="./">, and I found myself now in /first/index.php instead of being in /first/second/index.php

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Component: Widget: Gtk → Source Editor
Product: Core → DevTools
Component: Source Editor → View Source
Product: DevTools → Toolkit
Summary: misinterpretation of path-link url → Misinterpretation of ./ path-link url

The severity field is not set for this bug.
:Honza, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(odvarko)
Flags: needinfo?(odvarko)
Whiteboard: [devtools-triage]

Honza, can you add a test case? Thanks

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(odvarko)
Priority: -- → P3
Whiteboard: [devtools-triage]

When bulding a test case I realized I can't reproduce the reported issue. Clicking on "./" link causes the page to just stay in the same directory.

Nicolas, I am not 100% sure, but did you mention, you could reproduce this at our triage meeting?

Flags: needinfo?(odvarko) → needinfo?(nchevobbe)

I don't remember what I said, it's been a few weeks :/
I tested it and indeed, I can't reproduce. In view source, clicking on ./ links show files from the page current dir, and clicking on ../ links show files from the page parent dir. This was with file:// so I tried something that looked more like comment 0, but I get a similar behavior.

webmaster555 , could you share a link to a page where you see that? Or if not possible, a screencast showing the issue would be great

Flags: needinfo?(nchevobbe) → needinfo?(webmaster555)

I'm now on FF 129.0.1, did some test today and all seems to work as intended now

"could you share a link to a page where you see that?"

Yes, one link is over-there > https://www.divescotty.com/padi-scuba-diving-courses/padi-master-scuba-diver-course.php , the big blue button "Choose a PADI scuba course" (scrolling down in the middle of the page)

Flags: needinfo?(webmaster555)

(In reply to webmaster555 from comment #6)

I'm now on FF 129.0.1, did some test today and all seems to work as intended now

Oh weird

"could you share a link to a page where you see that?"

Yes, one link is over-there > https://www.divescotty.com/padi-scuba-diving-courses/padi-master-scuba-diver-course.php , the big blue button "Choose a PADI scuba course" (scrolling down in the middle of the page)

So I doubled check:

I'm going to close the bug, but feel free to reopen it if you see something weird again

Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: