Sp-dev-docs: Column formatting @currentWeb doesn't resolve as AsoluteWebUrl

Created on 20 Jan 2020  路  7Comments  路  Source: SharePoint/sp-dev-docs

Category

  • [ ] Question
  • [ ] Typo
  • [x] Bug
  • [ ] Additional article idea

Expected or Desired Behavior

@currentWeb should be resolved as AbsoluteWebUrl in column formatting

Observed Behavior

"@currentWeb + '/SitePages/testpage.aspx'"
transform to
https://testspsite.sharepoint.com/sites/testsite/documentlibrary/forms/@currentWeb/SitePages/testpage.aspx
instead of
https://testspsite.sharepoint.com/sites/testsite/SitePages/testpage.aspx

Steps to Reproduce

Example of the problematic part of a format column JSON
...
"href": "=@currentWeb + '/SitePages/History.aspx?number=' + substring(@currentField, 0, indexOf(@currentField, '|'))"
...

list-formatting fixed-next-drop bug-suspected

Most helpful comment

There was unfortunately a regression with @me and @currentWeb tags starting from 3rd of January. Fix has been already applied and is >50% rolled out in the production, expected to be at 100% level within upcoming days.

All 7 comments

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

Same issue here. I think we'll need to wait for someone with premier support to raise an official ticket. Not sure if the SPFx team can do anything about this

This seems to be working again now

There was unfortunately a regression with @me and @currentWeb tags starting from 3rd of January. Fix has been already applied and is >50% rolled out in the production, expected to be at 100% level within upcoming days.

Our production tenant has now received the hotfix. Thanks @VesaJuvonen

it is fixed now in our tenant

Was this page helpful?
0 / 5 - 0 ratings

Related issues

byrongits picture byrongits  路  3Comments

waldekmastykarz picture waldekmastykarz  路  3Comments

mikeparkie picture mikeparkie  路  3Comments

StfBauer picture StfBauer  路  3Comments

thechriskent picture thechriskent  路  3Comments