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 best solutions below
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
- Delay in loading Html Page(WebView) from assets folder in real android device
- Why does a function show up as not defined
- CSS Class is not applying to element (border width,color,and style attributes)
- How to sort these using Javascript or Jquery Most effectively
- how to fill out the table with next values in array with one button
- Automatically closing tags in form input?
- Positioning child at bottom of parent with scroll
- Remove added set of rows
- Website zoomed out on Android default browser
- Twitter Bootstrap horizontal form elements on a line
- http://sigmajs.org/ les mis tutorial - why are my canvases 0 height?
- My navbar is not expanding after collapse
- when a checkbox is checked how to display a different hidden element using javascript
- Gaps Vertically Using Dividers
- Svg containers not positioning properly
Related Questions in URL
- how to prepend www if the url string does not has www?
- Fetching URL vars into form and submitting to other page
- index.php url need to hide from homepage of php website
- Iframe not passing url parameters
- Object not found! The requested URL was not found on this server. PHP file not being accessed
- How can hide url value in php
- How parse makeHttpRequest with friendly url?
- Import .rda from URL into R
- Upload info that appear when share web link on Facebook
- Hiding param of struts.xml values in Struts 2
- PHP get public facing base directory from URL
- How to change URL form with GET method?
- how to get the URL from mainActivity to the second activity using intents?
- Using a dash in Struts 2 action name
- How do I load an HTTP URL with App Transport Security enabled in iOS 9?
Related Questions in REFRESH
- How to refresh a listview within a Fragment
- Android HorizontalLitview refresh is not working
- Stop script execution after refresh
- Stop form from refreshing the page on submit
- How to stay on active tab after refresh on page?
- How to regenerate indexes after removing element
- Alternatives to refresh to avoid blacklisting
- How to Update JFrame Components?
- How to reload list view?
- does http-equiv Refresh meta tag URL get a leading slash?
- Refreshing SQL view after adding a default constraint to one of its tables
- PHP - Prevent Duplicate Form Requests On Refresh?
- How to refresh datagridview with button?
- Refreshing an entire Linq to SQL DataContext
- Javascript/JQuery function not working on first page load. Then works on refresh
Related Questions in SLASH
- Apache Rewrite Rule to remove .php Extension adds multiple slashes
- XPath: what's the different between "begin with one slash" and "begin with 2 slashes"?
- does http-equiv Refresh meta tag URL get a leading slash?
- How can I tell smbclient not to translate a particular forward slash into a backward slash?
- Xamarin binding slash automatically
- How to add a traling slash
- how to add up values before and after a slash
- Server root/file structure in PHP
- Slash escape in javascript
- why is a forward slash converted to a hyphen / dash
- Adding class or id to body and dealing with root and trailing slash
- Change URL from ?index to /index
- Java on Windows: prevent '/' slash in file name from acting as a separator
- Slashes and hashes in Perl and metacharacters
- Apache: How to make the same rewrite rule without using THE_REQUEST?
Related Questions in HTTP-EQUIV
- does http-equiv Refresh meta tag URL get a leading slash?
- IE8 Compatablity in iframe for ie10 page
- Content Security Policy in .htaccess or with meta tag?
- HTML Redirect Dependent on Device Type
- http-equiv redirect to another html page
- How to use http-equiv and name attribute at the same time?
- remove http-equiv="refresh" via javascript
- How to redirect a google blog page....unless it is being contained in an iframe?
- X-Frame-Options is not working in meta tag?
- How to declare metadata tags using python dominate
- How can I reach routed components within my React SPA, while maintaining proper CSP?
- In IE10, is there a setting to always use Standard Document Mode?
- Is it not possible to change the web code in client side permanently for client?
- My WordPress site auto-redirects to another site
- What exactly does the http-equiv value 'Content-Security-Policy' do?
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)
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?
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.