The Slim Framework support forum has moved to http://discourse.slimframework.com. This Tender forum is no longer maintained or monitored.

Routing to a page with html anchor

NBG's Avatar

NBG

02 Aug, 2015 11:56 PM

Hi,

i'm trying to route to a page with an html anchor (")...

../page/anchor -> 404 ../page#anchor -> no effect ..page?#anchor -> no effect

Any ideas how to solve this?

Thanks!

  1. 1 Posted by Rob Allen on 03 Aug, 2015 06:21 AM

    Rob Allen's Avatar

    I don't quite understand. Can you show the code you're trying to use?

  2. 2 Posted by NBG on 03 Aug, 2015 09:25 AM

    NBG's Avatar

    Hi Rob,

    i mean generic links like Link which jump to the anchor on page target.php.

    With Slim it should look like Link ... but Slim ignores the anchor .-(

    Thanks,
    NBG

  3. 3 Posted by Rob Allen on 04 Aug, 2015 07:00 AM

    Rob Allen's Avatar

    You can't route to an anchor as the anchor is not passed to the web server by the browser.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac