This follows in meta tag, url with slash vs url without slash. All the answers missed something in the original poster's example: it's about meta http-equiv Refresh, about which HTML5 specifies that the path is to be relative to where the file with the Refresh value is located. Usually, paths are relative to the base element, and, to save coding, we may have a trailing slash in the base element's URL, so that a relative URL based on the base element will not have a leading slash. But http-equiv Refresh is a different case and I don't know the answer. For example, I don't know if it's determined by a browser or the server, for example. Does anyone here know? Thank you.
does http-equiv Refresh meta tag URL get a leading slash?
1.5k views Asked by Nick At
2
There are 2 answers
0
karlcow
On
Step 23.
Resolve the url value to an absolute URL, relative to the meta element. If this fails, abort these steps.
absolute URL is defined in the URL spec.
An absolute URL must be a scheme, followed by ":", followed by either a scheme-relative URL, if scheme is a relative scheme, or scheme data otherwise, optionally followed by "?" and a query.
You may also want to read that section of HTML5 about URLS
The document base URL of a Document object is the absolute URL obtained by running these substeps:
- If there is no base element that has an href attribute in the Document, then the document base URL is the Document's fallback base URL; abort these steps.
- Otherwise, the document base URL is the frozen base URL of the first base element in the Document that has an href attribute, in tree order.
Related Questions in HTML
- How to store a date/time in sqlite (or something similar to a date)
- How to use custom font during html to pdf conversion?
- Storing the preferred font-size in localStorage
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- Is there any way to glow this bulb image like a real light bulb
- With non-graphical maps in Leaflet, zoomDelta doesn't work
- What can I do to improve my coding on both html and css
- Uncaught TypeError: google.maps.LatLng is not a constructor at init (script.js:7:13)
- Bootstrap modal not showing at the desired position on a web page when the screen size is smaller
- Displaying a Movie List on a Website Using Jinja2 and Bootstrap
- How to redirect to thank you page after submitting a Google form embedded into a Google Site?
- Storing selected language in localStorage
- Fences (parenthesis, braces) in HTML and MathML
- Understanding Scroll Anchoring Behavoir
Related Questions in URL
- how do I change a URL with form to include additional selection
- Blog Post URL In flutter Web
- Why does RFC 3986 (URI generic syntax) declare the "host" component to be case-insensitive when the syntax rules show it to be case-sensitive?
- Non-Expiring Direct Link Like When Clicked It Will Download Without Landing Any Page
- Curl URL syntax for uploading files
- Send a json command to an app at a known port/address?
- How do I resolve this error ? "ERR_TOO_MANY_REDIRECTS"
- I'm using the googlesearch library in Colab, but I can't import my websites to a list. How can I do that?
- Sharepoint document library URL Rewrite
- Apache2 redirection results in wrong URL
- Vue / Vitest : issues in snapshots with dynamic import assets URL
- How to redirect to the landing page when the domain name is searched?
- find out filename from URL
- How do I ping a website to see if its valid before entering?
- Unable to download CSV file from web URL with runtime using python
Related Questions in REFRESH
- Automate the update of a pivot table in Excel via Power Automate Web
- Stream data from server component in NextJS 14 App Router
- Power automate dataflow refresh after mail recieved
- Unable to set up scheduled refresh in powerBI Service when Data is imported into PowerBI from S3 using R script
- Error when Refreshing Power BI Gateway - Mashup error
- Binding to a calculated property of a BindableProperty from code behind
- Refresh array in desktop app after actions in web-site
- How I refresh (update) a parameter in a time intervals using [spring-boot and ajax]
- How to enable automatic background refresh in Excel with closed workbook when connected to external database, such as Oracle?
- Oracle materialized view refresh on two different schedules
- How can I force a DataGridView to redraw or refresh after any front end changes to the data?
- Problem understanding Python's turtle refreshing after using a tracer(0) and an update
- Power BI service refreshing fine but desktop version fails
- PowerBi refreshing issue (MySQL)
- Refresh a certain sheet associated with multiple connections
Related Questions in SLASH
- CSV with Number and Slash around numbers updates the data when I open in Excel
- python Interactions library doesnt accept argument
- How to handle error "dispatch_unknown_error" when i am trying to trigger a jenkins job with slash command build in slack
- NextJS router push remove slash
- When using discord.py purge with slash commands: i can only delete 1 message or i get an error
- Remove the slash (/) at the end of my routee
- Send Slash Commands Embeds Choices | Discord.js v14
- is my .htaccess if okay? i am unable to use directores in main domain
- Slash command in discord bot
- Tiktok API redirect URI with slash (/) leads to 404 in my case why?
- Discord.js v14 | How do I make a Button that doesn't expire
- discord.js v14 | Send a DM embed message with slash commands
- Discord slash command 2 choices
- how to add a "/" slash sign to my measure result in dax
- Remove leading slash (/) from imports after bundling a Vite project
Related Questions in HTTP-EQUIV
- Content Security Policy in .htaccess or with meta tag?
- remove http-equiv="refresh" via javascript
- How to smoothly transition from one page to the other using HTTP-EQUIV="refresh"
- how to write content-security-policy in html ? are the values links or keywords?
- HTML Redirect Dependent on Device Type
- how to add cache-control and expires value in html page
- How can I reach routed components within my React SPA, while maintaining proper CSP?
- http-equiv redirect to another html page
- Getting the 'Content' Redirected URL from the Original URL in C#
- How to implement http-equiv/refresh with POST request?
- Avoid http-equiv <meta> tags
- Why is delivery of Content-Security-Policy via headers "preferred"?
- How does meta tag with attribute http-equiv work under the hood?
- HTTP-EQUIV="REFRESH" isn't working on android web view
- Is an empty meta refresh tag ignored or equivalent to 0?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
If the URL is given without a slash, the path will be relative to the document and if the URL is given with the slash, the path will be relative to the root. It's determined by the browser and all the browsers, in this case, will do the same thing.