Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [fragment-identifier]

The fragment-identifier is the part of the URI/URL following the hash symbol. In the case of `http://mysite.com/page/#/one` then `/one` would be the fragment-identifier.

fragment-identifier
1 vote
1 answer
52 views

Can I write a robots.txt rule to forbid crawling URLs with an anchor part (using the hash character, #)?

I have a table of content plugin on my site which made some URLs with # at the beginning. like: https://example.com/#how_to_do_something which links to that header's part in the content. Its like it ...
Kimia Houshidari's user avatar
0 votes
1 answer
65 views

Why Firefox doesn't follow fragment identifiers in iframe?

Go to https://colnect.com/en/forum/app!/help/faq with Firefox, click any link and nothing happen. Do the same in Chrome and you will be moved somewhere. Is it Firefox issue or something else? Code is: ...
Yuri's user avatar
  • 313
0 votes
1 answer
203 views

HTML5 Jump to fragment but scroll slightly further (due to navigation bar)

I designed a page with a semi-transparent navigation bar at the top which is fixed to the top by using position: sticky & top: 0. It looks cool & works nice until I jump to a certain object by ...
Felix Stupp's user avatar
1 vote
1 answer
80 views

Rewrite module replace char # to URL equivalent %23

How to replace in URL char # to its URL equivalent %23? Example: https://example.com/common/rest/sitck?Param1=46694#2205923&Code=123 to https://example.com/common/rest/sitck?Param1=46694%232205923&...
Jaroslav Zeman's user avatar
2 votes
1 answer
294 views

How can I find the element that would have been targeted by a given fragment identifier?

When a browser navigates to an URL like http://example.com/#foo, it scrolls to the element identified by #foo; this element of the URI is called a fragment identifier. Suppose I have a fragment ...
user3840170's user avatar
  • 27.5k
1 vote
3 answers
2k views

HTML: how to use a href to link to a file name that starts with # character

I have many text files, the name of which starts with # (hash) sign. It would be very cumbersome to rename the files. If I try to link to the text files in an HTML file, using <a href="#...
Craig Pelkie's user avatar
-2 votes
1 answer
304 views

Execute javascript based on # in target URL [duplicate]

when someone clicks an element that points to #checkoutID I'd like to execute a script. this is the element: <a class="lp-element lp-pom-button" id="lp-pom-button-293" href=&...
Michael's user avatar
2 votes
2 answers
3k views

Selecting the anchor tag of a particular href using jQuery

THE AIM After refreshing the browser, I would like that the user stays in the menu/content they were before refreshing. THE PROBLEM After refreshing the browser, the content of the particular menu ...
Joehat's user avatar
  • 1,099
1 vote
1 answer
115 views

How do you read a hash with an "&" sign in the URL?

I am building a dynamic website using jQuery and Ajax. I want to read the id after the hash in the following URL: something.php#type=abc&id=123 My current code to read hash value is: var hash = ...
Calvin Klein's user avatar
1 vote
1 answer
198 views

How to clear fragment identifier on 302 redirect?

It seems that after a 302 direct, the browser preserves the fragment identifier: /foo#/bar/baz returns 302 to /login, but browser shows: /login#/bar/baz How do I get the browser to redirect and ...
aaa90210's user avatar
  • 11.9k
1 vote
1 answer
208 views

How to embed a colon in the fragment part of URL without it being encoded?

I am trying to construct the below URL: https://console.aws.amazon.com/elasticmapreduce/home?region=us-east-1#cluster-details:j-1IGU6572KT6LB I am not sure how to include the :j-1IGU6572KT6LB. When ...
user2221654's user avatar
1 vote
0 answers
603 views

ios - WKWebView evaluateJavaScript not scrolling to fragment identifier

I am trying to navigate to a fragment identifier in a webpage in WKWebView. To do this, I have the following call in my WKNavigationDelegate's didFinishNavigation: [webView evaluateJavaScript:@"...
JeffreyHC's user avatar
0 votes
2 answers
280 views

How to use fragment identifiers in path helpers in phoenix webframework?

Is there a way to add a fragment identifier to a path helper? I try to link back from my login page to the about section in the landing page. <a href="localhost:4000/#about">ABOUT</a> ...
Yufrend's user avatar
  • 113
1 vote
3 answers
2k views

Extract URL from Excel using VBA not extracting after hash

I am using the VBA method to extract the URL from a cell: Sub ExtractHL() Dim HL As Hyperlink For Each HL In ActiveSheet.Hyperlinks HL.Range.Offset(0, 1).Value = HL.Address Next End Sub This is ...
user1480988's user avatar
1 vote
1 answer
1k views

Using SVG Fragment Identifiers for background images in css with Microsoft Edge 42 (17134)

Fragment identifiers for SVG Images used to work in Microsoft Edge (known issues in Safari). When using the same SVG stack at the same page multiple times (at least 2 times), the latest Edge build (...
jBear Graphics's user avatar

15 30 50 per page
1
2 3 4 5
17